**** BEGIN LOGGING AT Mon Jun 12 03:00:03 2017 Jun 12 06:15:07 hi ds2: Jun 12 06:15:34 did you received maxim board Jun 12 06:15:58 and do you have some idea abt Adjustable Amplitude Threshold??? Jun 12 06:51:56 * ravikp7[m] sent a long message: ravikp7[m]_2017-06-12_06:51:55.txt Jun 12 06:52:27 I need help in debugging it Jun 12 15:03:26 at last received the bbb Jun 12 16:39:05 jkridner , av500 , nerdboy : please help me in configuring spl for tftp transfer of uboot over usb Jun 12 16:49:03 pmezydlo: Hi, can you help here please ? I'm new to this Jun 12 16:49:36 hi, ok what is your problem Jun 12 16:50:44 I'm build spl/uboot with config am335x_evm_usbspl_defconfig Jun 12 16:50:50 ravikp7: can you post the configuration file for your u-boot build? Jun 12 16:51:33 m_w: sure, wait Jun 12 16:54:07 ravikp7: here is a forum post that might be useful: https://e2e.ti.com/support/arm/sitara_arm/f/791/t/515767 Jun 12 16:55:23 m_w: I already checked out it, the solution asks to build with am335x_evm_usbspl_defconfig which I'm doing, still no success Jun 12 16:56:07 * ravikp7 posted a file: .config (21KB) Jun 12 16:57:43 i had to patch that last time when i tried... Jun 12 17:01:02 nerdboy: please share the patch Jun 12 17:02:28 * ravikp7 posted a file: .config (21KB) Jun 12 17:12:59 not sure what happened to it... Jun 12 17:13:49 it was just a test for building mass storage support Jun 12 17:14:58 nerdboy: test was successful? Jun 12 17:15:22 commit b3cab814232d3b5e165c09ffad4af5b71bde15f3 <= looks like somebody had to fix ums for imx6ul Jun 12 17:16:31 CONFIG_SPL_NET_VCI_STRING="AM335x U-Boot SPL" Jun 12 17:16:41 try add this to the configuration Jun 12 17:17:24 *adding Jun 12 17:17:36 m_w: ok.. Jun 12 17:42:47 ravikp7: any luck? Jun 12 17:43:05 m_w: nopes, same Jun 12 17:45:36 what does you /etc/dhcp/dhcpd.conf file look like? Jun 12 17:46:53 m_w: I'm using the node.js usb bootloader server that I'm developing Jun 12 17:49:58 m_w: I transferred BBBlfs's pre compiled spl binary through this server, it booted well Jun 12 17:52:10 ravikp7: so your server handles the IP leasing to the device? Jun 12 17:52:21 m_w: yes Jun 12 17:57:45 looking at your code Jun 12 17:58:00 hmm Jun 12 18:04:00 the boot sequence will first need the spl image transfer then when the spl loads it will request the regular img Jun 12 18:04:31 is your code transfering the regular image after the spl? Jun 12 18:04:43 not yet Jun 12 18:04:52 just spl for now Jun 12 18:05:03 that is the problem Jun 12 18:05:06 :) Jun 12 18:05:34 the SPL is only used to load the img file Jun 12 18:06:24 you would need to provide the regular u-boot.img on the subsequent request from the spl image Jun 12 18:07:35 but when I transfer the BBBlfs's pre compiled spl binary, it boots and waits for tftp of uboot, wait I'll share its serial output Jun 12 18:07:48 okay Jun 12 18:09:47 m_w: https://pastebin.com/rm75xejk Jun 12 18:10:28 okay Jun 12 18:11:00 with the new bootloader is there a delay before the ### ERROR ### Please RESET the board ### Jun 12 18:11:20 no Jun 12 18:11:26 is the ethernet driver compiled into the SPL image Jun 12 18:11:53 I think he is using MUSB Jun 12 18:12:18 does the SPL even have the option to put in the MUSB driver?! Jun 12 18:12:35 didn't think there was that much memory Jun 12 18:16:58 ds2: I don't see ethernet included in the config that I'm using am335x_evm_usbspl_defconfig Jun 12 18:20:21 and yes, musb is included Jun 12 18:22:38 ravikp7:what kind of host are you using? Jun 12 18:23:45 ds2: usb server, currently node.js server that I'm porting from BBBlfs Jun 12 18:26:01 the bbblfs uses a really old bootloader and much has changed since then Jun 12 18:26:44 m_w: yes, that confuses a newbie like me a lot :( Jun 12 18:26:52 ravikp7: you know how to do a git bisect? Jun 12 18:27:28 m_w: not yet Jun 12 18:27:32 yes, what kind of host? Jun 12 18:27:49 Linux? Windows? OS/2? NT? BSD? Jun 12 18:27:59 Linux Jun 12 18:28:32 ravikp7: okay, look at the kernel messages and see what is it doing - there should probally be a re-enumeration between ROM and SPL Jun 12 18:28:45 see if the SPL one succeeds and if you get a usb device Jun 12 18:29:38 yes, the BBBlfs's spl succeeds and I get the spl usb device Jun 12 18:30:17 SPL_USBETH_SUPPORT Jun 12 18:30:45 does DHCP succeed for the SPL part? Jun 12 18:33:08 ds2: bb is leased ip from server, and tftp request is made by the bb to the server, so spl part is done Jun 12 18:34:48 ravikp7: CONFIG_SYS_EXTRA_OPTIONS="NAND,SPL_USBETH_SUPPORT" Jun 12 18:35:16 it looks like it only has CONFIG_SYS_EXTRA_OPTIONS="NAND" in the config you sent Jun 12 18:35:38 m_w: ok, trying this Jun 12 18:36:59 ravikp7: so you see SPL's TFTP request? Jun 12 18:37:18 ds2: yes Jun 12 18:39:01 SPL tftp request ( udp packet) Jun 12 18:39:02 { udpSrc: 1234, udpDest: 69, udpLen: 20, chkSum: 32823 } Jun 12 18:39:19 with the new bootloader? Jun 12 18:39:20 what is the requested path? Jun 12 18:39:34 tftp servers can be picky Jun 12 18:39:50 some want /tftpboot/foo, others want just /foo, yet others want "foo" Jun 12 18:42:56 I think it doesn't use any path, just the udp ports Jun 12 18:43:28 the server that you use dicates the path Jun 12 18:43:51 since you are providing the server, it is up to you Jun 12 18:44:04 got to run Jun 12 18:44:20 ravikp7: did the SPL_USBETH_SUPPORT thing help? Jun 12 18:44:57 m_w: no, getting error on build Jun 12 18:44:58 * ravikp7 sent a long message: ravikp7_2017-06-12_18:44:58.txt Jun 12 18:45:22 you need to config in the usb code :) Jun 12 18:45:34 CONFIG_USB=y Jun 12 18:45:59 ok, got it :) Jun 12 18:46:20 lemme pull the latest source so we can figure this out Jun 12 18:46:53 m_w: yeah, that would be good, thanks! Jun 12 18:48:20 you need the gadget ethernet driver Jun 12 18:48:56 CONFIG_USB_ETHER Jun 12 18:49:06 CONFIG_USB_ETH_RNDIS Jun 12 18:50:49 CONFIG_SPL_USB_GADGET_SUPPORT Jun 12 18:55:25 make sure these are set in the configuration Jun 12 18:56:12 ok.. Jun 12 19:07:59 ravikp7: so it says that we run out of space with the drivers added in Jun 12 19:08:12 so I dropped a few configs to make space Jun 12 19:08:37 I have a binary now, how do I test it with your code? Jun 12 19:09:10 just put as ./bin/spl Jun 12 19:09:15 npm install Jun 12 19:09:22 sudo npm start Jun 12 19:09:34 lemme clone the repo Jun 12 19:09:46 or share binary with me :) Jun 12 19:11:22 yeah, I'm too getting out of space error Jun 12 19:11:37 what do you have to do with the beagle? Jun 12 19:12:03 press boot switch and connect usb Jun 12 19:12:21 okay Jun 12 19:13:53 getting an error with npm install Jun 12 19:14:13 try with sudo Jun 12 19:15:33 npm ERR! Failed at the deasync@0.1.9 install script. Jun 12 19:16:09 what node ver are you using? Jun 12 19:16:45 v0.10.29 Jun 12 19:16:56 it is what debiain installed Jun 12 19:17:21 lemme try some things Jun 12 19:17:32 that's much older, I expect it not to run there Jun 12 19:18:11 Try BBBlfs ? Jun 12 19:19:24 btw I'm using node 7.x Jun 12 19:20:26 installing 8.x Jun 12 19:20:33 one sec Jun 12 19:20:42 not a node guy usually Jun 12 19:27:48 now it is complaining about /etc/package.json not existing Jun 12 19:32:37 m_w: while installing node? Jun 12 19:35:34 I was doing the commands in the wrong directory :) Jun 12 19:40:34 * nerdboy needs to vacuum out the dust dinosaurs today... Jun 12 19:46:06 ravikp7: guessing I need the serial cable to see the u-boot output :) Jun 12 19:46:22 m_w: yes :) Jun 12 19:46:41 lemme just send you the binary and config Jun 12 19:46:53 ok.. Jun 12 19:48:02 let me know if it works Jun 12 19:48:13 I am gonna dig out my serial cable Jun 12 19:50:32 hmm Jun 12 19:52:04 ravikp7: did it boot? Jun 12 19:52:23 m_w: yes, it's working Jun 12 19:53:52 m_w: https://pastebin.com/MbKfB7bF Jun 12 19:54:17 go to go Jun 12 19:54:24 first try Jun 12 19:56:32 now just add support for the secondary load Jun 12 19:58:35 m_w: what config file you used first? and added what config options to it? Jun 12 19:58:58 I started from the default Jun 12 19:59:30 make am335x_evm_usbspl_defconfig Jun 12 19:59:36 make menuconfig Jun 12 20:00:19 (clicked the menu a bit to get the config I sent) Jun 12 20:00:26 make -j8 Jun 12 20:01:36 this is why they pay me the big bucks ;) Jun 12 20:02:05 m_w: yeah, :) Jun 12 20:02:16 m_w: Thanks Jun 12 20:02:47 m_w: you added usb gadget, ethernet ? Jun 12 20:03:06 anything else included ? Jun 12 20:03:22 and removed what ? Jun 12 20:04:49 lemme show you the configuration diff Jun 12 20:05:35 https://pastebin.com/BD1VKQJ1 Jun 12 20:06:19 took out the NAND support, MTD support and YMODEM support Jun 12 20:06:45 added SPL gadget and SPL USB ethernet Jun 12 20:07:25 m_w: great! thank you so much :) Jun 12 20:07:46 no problem Jun 12 20:08:31 I would create a new defconfig for the beaglebone black and push it upstream Jun 12 20:08:58 m_w: awesome! **** ENDING LOGGING AT Tue Jun 13 03:00:00 2017