I am running the NSA325v2 on Debian booted from sata and would like to switch the nsa325v2 from the sata only boot to a way where i can send the sata drives to sleep so that i somehow a standby mode. Now i have some stuff already installed and configured on the sata system and would like to reuse this system on the usb drive. Is it possible to reuse the sata rootfs on the usb drive by copyingby saschadd - Debian
bodhi, i upgraded the kernel but i might have done something wrong as cat /proc/mtd shows now only 3 mtds. I followed your description http://forum.doozan.com/read.php?2,32146 and did cp -a zImage-4.10.9-mvebu-tld-1 zImage.fdt cat dts/armada-385-wd-ex4100.dtb >> zImage.fdt mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.9.0-mvebu-tld-12 -d zby saschadd - Debian
bodhi, following the bootlog after setting fw_setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial mtdparts=armada-nand:5M(u-boot),5M(kernel),5M(uRamdisk),441M(image.cfs),15M(rescue_fw),20M(config),10M(reserve1),10M(reserve2)' BootROM - 1.73 Booting from NAND flash mvBoardIdGet: TWSI Read for Marvell Board ID faiby saschadd - Debian
bodhi, i think this busybox on stock rom is very limited and outdated as far as i noticed.by saschadd - Debian
flash_erase --help -sh: flash_erase: not found nandwrite --help Usage: nandwrite MTD_DEVICE INPUTFILE Writes to the specified MTD device. -a, --autoplace Use auto oob layout -j, --jffs2 force jffs2 oob layout (legacy support) -y, --yaffs force yaffs oob layout (legacy support) -f, --forcelegacy force legacy support on autoplacement enabled mtd deby saschadd - Debian
bodhi, which flash_erase nandwrite in stock rom gave following output -sh: which: not foundby saschadd - Debian
bodhi, i think you got it! : ) booted to debian as stock was missing which, flash_erase and nandwrite. All went well as described. Following the output from boot after flashing picocom -b 115200 -d 8 /dev/ttyAMA0 picocom v1.7 port is : /dev/ttyAMA0 flowcontrol : none baudrate is : 115200 parity is : none databits are : 8 escape is : Cby saschadd - Debian
bodhi, well done! : ) 1. Shutdown and power up without the USB drive. It should boot to stock. working : ) 2. kwboot with tld-6, without USB drive. It should boot to stock. working : ) 3. kwboot with tld-6, with USB drive attached. It should boot to Debian. working : ) 4. kwboot with tld-6, without USB drive. Interrupt serial console, and temporarily remove bootcmd_custom. It shouby saschadd - Debian
bodhi, should i set those 2 changed envs? and should i save those 2 new envs in debian to nand before testing?by saschadd - Debian
Seems not to work as expected ./kwboot -f -t -B 115200 /dev/ttyAMA0 -b u-boot-a38x-Yellowstone_2014T30p6_bodhi-tld-6-nand-uart.bin -s 0 -q 1 Sending boot message. Please reboot the target...-▒"▒&T▒▒\▒"3DUfw▒"3DUfw▒"3DUfw▒"3DUfw▒"3DUfw Sending boot image... 0 % [......................................................................]by saschadd - Debian
bodhi Wrote: ------------------------------------------------------- > saschadd, > > Here is tld-6. This seems to have better timing. The kwboot starts at first try. > To repeat the tests: > 1. Shutdown and power up without the USB drive. It should boot to stock. works > 2. kwboot with tld-6, without USB drive. It should boot to stock. the envs are correcby saschadd - Debian
bodhi, just to be sure, i am trying test 2 without usb pen drive attached because test 1 and test 3 were working! ./kwboot -f -t -B 115200 /dev/ttyAMA0 -b u-boot-a38x-Yellowstone_2014T30p6_bodhi-tld-5.3-nand-uart.bin -s 0 -q 1 Sending boot message. Please reboot the target.../▒"▒&T▒▒▒"3DUfw▒"3DUfw▒"3DUf-▒"3DUfw▒"3DUfw Sending boot image.by saschadd - Debian
Nope. ./kwboot -f -t -B 115200 /dev/ttyAMA0 -b u-boot-a38x-Yellowstone_2014T30p6_bodhi-tld-5.3-nand-uart.bin -s 0 -q 1 Sending boot message. Please reboot the target...-▒"▒&T▒▒▒"3DUfw▒"3DUfw▒"3DUfw▒"3DUfw▒"3DUf\ Sending boot image... 0 % [......................................................................] 0 % [..................by saschadd - Debian
Hmm, same thing happens Marvell>> setenv bootcmd_stock 'echo Booting from stock ... ; run set_bootargs_stock; printenv bootargs; nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000' Marvell>> boot (Re)start USB... USB0: Port (usbActive) : 0 Interface (usbType = 3) : USB XHCI 1.00 scanning bus 0 for devices... 3by saschadd - Debian
okay, here the printenv output CASset=max MALLOC_len=5 MPmode=SMP autoload=no baudrate=115200 boot_order=hd_scr usb_scr mmc_scr hd_img usb_img mmc_img pxe net_img net_scr bootargs=root=/dev/ram console=ttyS0,115200 bootargs_dflt=$console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0by saschadd - Debian
bodhi Wrote: ------------------------------------------------------- > sachadd, > > Ok. So in Debian, you can save the env: > > > fw_setenv bootcmd_custom 'run bootcmd_usb; run boo > tcmd_stock; reset' > > > And then do the 3 tests > > 1. Shutdown and power up without the USB drive. It should boot to stock as if nothing has changed,by saschadd - Debian
bodhi, i think this looks good so far. ./kwboot -f -t -B 115200 /dev/ttyAMA0 -b u-boot-a38x-Yellowstone_2014T30p6_bodhi-tld-5.3-nand-uart.bin -s 0 -q 1 Sending boot message. Please reboot the target...|▒"▒&T▒▒▒"3DUfw▒"3DUfw▒"3DUfw▒"3DUfw▒"3DUfw Sending boot image... 0 % [..............................................................by saschadd - Debian
bodhi Wrote: ------------------------------------------------------- > saschadd, > > > OK, pls throw away tld-5.2 :) :) :) :) :) :) :) :) okay, threw it out of the window.by saschadd - Debian
bodhi, with tld-5.2 printenv baudrate=115200 bootargs=root=/dev/ram console=ttyS0,115200 bootdelay=1 ethact=egiga0 ipaddr=2.66.66.203 loads_echo=0 netmask=255.255.255.0 pcieTune=no rootpath=/srv/nfs/ serverip=2.66.66.32 Environment size: 212/524284 bytes Marvell>> here the rest of the log ./kwboot -f -t -B 115200 /dev/ttyAMA0 -b u-boot-a38x-Yellowstone_2014T30pby saschadd - Debian
bodhi, same test as before with tld-5.1 ./kwboot -f -t -B 115200 /dev/ttyAMA0 -b u-boot-a38x-Yellowstone_2014T30p6_bodhi-tld-5.1-nand-uart.bin -s 0 -q 1 Sending boot message. Please reboot the target...-▒"▒&T▒▒▒"3DUfw▒"3DUfw▒"3DUfw▒"3DUf\▒"3DUfw Sending boot image... 0 % [.............................................................by saschadd - Debian
bodhi, here is the confirmation. ./kwboot -f -t -B 115200 /dev/ttyAMA0 -b u-boot-a38x-Yellowstone_2014T30p6_bodhi-tld-5-nand-uart.bin -s 0 -q 1 Sending boot message. Please reboot the target...-▒"▒&T▒▒▒"3DUf\▒"3DUfw▒"3DUfw▒"3DUfw▒"3DUfw Sending boot image... 0 % [.....................................................................by saschadd - Debian
bodhi, unfortunately the same result. ./kwboot -f -t -B 115200 /dev/ttyAMA0 -b u-boot-a38x-Yellowstone_2014T30p6_bodhi-tld-5-nand-uart.bin -s 0 -q 1 Sending boot message. Please reboot the target...|▒"▒&T▒▒▒"3DUfw▒"3DUf/▒"3DUfw▒"3DUfw▒"3DUfw Sending boot image... 0 % [.................................................................by saschadd - Debian
bodhi, now kwboot is working. following output until printenv ./kwboot -f -t -B 115200 /dev/ttyAMA0 -b u-boot-a38x-Yellowstone_2014T30p6_bodhi-tld-5-nand-uart.bin -s 0 -q 1 Sending boot message. Please reboot the target...-▒"▒&T▒▒\▒"3DUfw▒"3DUfw▒"3DUfw▒"3DUfw▒"3DUfw Sending boot image... 0 % [.......................................by saschadd - Debian
bodhi, tld5 seems not to be working. tried round about 20 times with no luck. :(by saschadd - Debian
bodhi Wrote: ------------------------------------------------------- > And in Debian, check to see it bootcmd is now correct. fw_printenv bootcmd gives bootcmd=run bootcmd_usb; run bootcmd_stock; reset > And then shutdown. > > kwboot again with tld-4, interrupt serial console and > printenv bootcmd gives bootcmd=nand read.e 0xa00000 0x500000 0x500000;nand reby saschadd - Debian
bodhi, printenv gives Marvell>> printenv CASset=max MALLOC_len=5 MPmode=SMP autoload=no baudrate=115200 boot_order=hd_scr usb_scr mmc_scr hd_img usb_img mmc_img pxe net_img net_scr bootargs=root=/dev/ram console=ttyS0,115200 bootargs_dflt=$console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$by saschadd - Debian
bodhi, i am not at the nas box but i did a fw_printenv in the debian boot before the tests. The following should be the envs set at the moment. Maybe you can already see a typo or something else that causes the problem. Will be able to test again this evening. CASset=max MALLOC_len=5 MPmode=SMP autoload=no baudrate=115200 boot_order=hd_scr usb_scr mmc_scr hd_img usb_img mmc_img pxby saschadd - Debian
bodhi, i think you got it halfway. 1. Shutdown and power up without the USB drive. It should boot to stock. is booting to stock. done! 2. kwboot with tld-4, without USB drive. It should boot to stock. is booting to stock. done! 3. kwboot with tld-4, with USB drive attached. It should boot to Debian. is booting to stock. done! following the output from kwboot with usb aby saschadd - Debian
Okay, this seems to work ./kwboot -f -t -B 115200 /dev/ttyAMA0 -b u-boot-a38x-Yellowstone_2014T30p6_bodhi-tld-4-nand-uart.bin -s 0 -q 1 Sending boot message. Please reboot the target...\▒"▒&T▒▒▒"3DUf|▒"3DUfw▒"3DUfw▒"3DUfw▒"3DUfw Sending boot image... 0 % [......................................................................] 0 % [.by saschadd - Debian
bodhi, maybe i got you wrong or it is not working as expected. ./kwboot -f -t -B 115200 /dev/ttyAMA0 -b u-boot-a38x-Yellowstone_2014T30p6_bodhi-tld-4-nand-uart.bin -s 0 -q 1 Sending boot message. Please reboot the target...|▒"▒&T▒▒/▒"3DUfw▒"3DUfw▒"3DUfw▒"3DUfw▒"3DUfw Sending boot image... 0 % [.......................................by saschadd - Debian