Billy, That's very good news in NSA325 u-boot, that it can load the kernel from the USB rootfs. But the GPIOs also need to be set correctly. With USB rootfs attached, and at least 1 HDD attached. kwboot the NSA325 u-boot, and mw.l 0xF1010100 0x40008000 mw.l 0xF1010140 0x00003AA4 sleep 10 usb start ide reset And then boot bootby bodhi - Debian
Joey, > I thought I was secure in my manhood, but after > seeing this cutie I'm full of Confucius LOL: > > https://www.amazon.com/FriendlyElec-NanoPi-NEO3-Rockchip-Computer/dp/B08D351484/ref=d_pb_allspark_dp_sims_pao_desktop_session_based_vft_none_sccl_3_7/137-4787473-0125623? The form factor is so nice looking! but likely to have a heat problem, it will run very hot. Sby bodhi - Off-Topic
USB and HDD spinup in either NSA325 or Dreamplug u-boot. With both USB rootfs and HDD roots attached. mw.l 0xF1010100 0x40008000 mw.l 0xF1010140 0x00003AA4 sleep 10 usb start ide reset I hope to see at least USB works.by bodhi - Debian
Billy, Very good news that you can kwboot with NSA325 u-boot! root@rasp2:~/tools# kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.2017.07-tld-1.nsa325.mtd0.kwb -p Sending boot message. Please reboot the target...\ Sending boot image... 0 % [......................................................................] 1 % [......................................................................]by bodhi - Debian
dhargens, QuotePogov4> printenv > dtb_file=kirkwood-pogo_v4.dtb The correct name is kirkwood-pogoplug_v4.dtb. But I see it's all good now, congrats!by bodhi - uBoot
> Since I can't boot the V4, I don't know how to get > the 'printenv dtb_file' command to work and change > it. I can interrupt the autoboot, but I don't > think that helps me. Yes, the printenv is u-boot command which you can execute after interrupting the u-boot countdown QuoteHit any key to stop autoboot: 0 Let's do this. Mount the USB rooby bodhi - uBoot
dhargens, The error is: > loading DTB kirkwood-pogo_v4.dtb ... > ** File not found kirkwood-pogo_v4.dtb ** Check your env in serial console printenv dtb_file And mount the USB rootfs on another Linu xbox and check that file. Assuming it is mounted at /media/sdb, cd /media/sdb1/boot/dts ls -l kirkwood-pogo_v4.dtbby bodhi - uBoot
Another important topic: kwboot. See if you can run kwboot and boot this u-boot for the Zyxel NSA325. See my u-boot release thread: https://forum.doozan.com/read.php?3,12381 Download this tarball Quoteuboot.2017.07-tld-1.nsa325.bodhi.tar And use this uboot.2017.07-tld-1.nsa325.mtd0.kwb to run do UART booting as desecribed here: https://forum.doozan.com/read.php?3,51739,51919#msg-51919by bodhi - Debian
> I'm already booting from hdd. No usb anymore. Cool! Is there anyway you can make it unique in the log the HDD that you said lost when you use 3 or 4 HDDs? Basically, perhaps use a different 2.5 HDD/SSD so we know which SATA port has that problem. Sounds like there might be 2 ports that are not working (the ones using PCIe bus). I'm pretty sure those are 2 SATA ports that aby bodhi - Debian
> this is the output of lsmod > > root@debian:~# lsmod > Module Size Used by > sg 32768 0 > uio_pdrv_genirq 16384 0 > uio 20480 1 uio_pdrv_genirq > ip_tables 20480 0 > x_tables 24576 1 ip_tables > phy_armada38x_comphy 16384 0 > uas 2048by bodhi - Debian
> root@debian:~# fw_printenv > Cannot read environment, using default > Cannot read default environment from file Don't worry about fw_printenv, it will not work. The bad news is the envs cannot be saved, because it is not on flash. This is a limitation that you will need to boot with tfttp until until I have time to see if I can cretate new u-boot or patching the stock u-boot.by bodhi - Debian
traxdata, I don't understand your post. Did you copy the modules andn then run usbip user space? after that, what is the output of lsmodby bodhi - Debian
Billy, What I was thinking is you need to set mtdparts in bootargs before booting setenv mtdparts 'mtdparts=spi0.0:0x80000@0(uboot,0x700000@0x100000(root)' You should always post the entire log (from u-boot banner) so I can see what setenv commands you did.by bodhi - Debian
Billy, > Minicom cut lines. How to configure it to not cut > ? I tried to make my windows larger but it's not > working. Use picocom, it is better. > BTW the Toshiba is 3.5". Cool! So that regulator was a big differentce between this box and the DS411/DS413jv10.by bodhi - Debian
Billy, Your log got cut off on the right side, so I can't see clearly what's going on. Please do cat /proc/mtd cat /proc/cmdlineby bodhi - Debian
Billy, > root@debian:~# ifconfig | grep "inet "| > grep -v '127.0.0.1' | cut -c14-26 > 192.168.10.20 Thanks! That was in previous buster (10) rootfs. I corrected it in my boxes but forgot to update it in the bullseye rootfs. root@tldDebian:~# alias myip alias myip='ifconfig | grep "inet "| grep -v 127.0.0.1 | cut -c14-28' root@tlby bodhi - Debian
Quote/dev/sdb1 2048 209717247 209715200 100G 83 Linux /dev/sdb2 209717248 1953525167 1743807920 831.5G 83 Linux Cool! Now you can try adding 3.5" HDD to other 3 slots (one at the time) to see if the ports are online. If they are not, then move this 1TB Toshiba to 2nd, 3rd, 4th to see the 2.5" disk work with those slots.by bodhi - Debian
I have high hope for the new DTB just posted above :)by bodhi - Debian
Billy, QuoteUImage has the dtb embedded. But does the usb key need to have the DTB inside the /boot/dts/ folder ? No need to, since you are booting with stock u-boot. But it does not hurt to have it in the right place. Please try the single HDD tests again with this new DTB.by bodhi - Debian
> > What to do next ? > I think we are a little stuck. > I don't find how to test for sata with my u-boot > like ide reset. > > I'm waiting for your asks. We know the power supply is OK, since you can see the HDDs in stock OS. I will modify the DTS and upload another updated DTB. You can already use the system on USB rootfs, so you could install Debiaby bodhi - Debian
> For next time, someone with u-boot stock you have > this command to find the physical address of > network : > Marvell>> sg Good find! BTW, each stock u-boot has something unique and not all commands are implemented. But worth a try next time we see a new box.by bodhi - Debian
Billy, The 88F6282 is a clone of 88F6281. Still in Kirkwood SoCs family, but it was named Armada 300 (probably right before Marvell started the Armada SoC series to give it brand awareness). The Zyxel NS325 and the Dreamplug also have 88F6282. You can find various Marvell SoCs Rereference Manuals in this page: https://github.com/torvalds/linux/blob/master/Documentation/arm/marvell.rstby bodhi - Debian
> do i need to put the dtb in the /boot/dts/.. or is > it there just to make the uImage ? > Because i put it in /boot to make the uImage .... > > I'll give it a try... so confused if it's that the > problem ! > > Quotesetenv dtb_file > /boot/dts/kirkwood-ds212.dtb When you boot with stock u-boot, which is very old and does not support device tree,by bodhi - Debian
Hi Billy, > Please point me to ressources, i really want to > learn the stuff not only doing copy/paste things > or explain me. There is really no central resource for these things out in the net. I think one of the best places to learn is this forum. I gathered posts that are tutorials and informative in the Wiki thread. And I will answer questions about ARM Embedded Linux if Iby bodhi - Debian
Billy, Do you have any 2.5" HDD to run these tests with? I think most likely we need 12V regulators. But it is good to see if the 5V works for 2.5" HDD/SSD first.by bodhi - Debian
Quotewhat do you mean by interrupt the serial console ? That was just normal speaking for typing something to stop u-boot countdown and get to the u-boot prompt! Ok. Let's do this slowly to see which HDD works With only 1st HDD in the slot, boot with USB rootfs. Interrupt serial console and, md.l 0xF1010100 1 md.l 0xF1010140 1 mw.l 0xF1010100 0x40008000 mw.l 0xF1010140 0x0by bodhi - Debian
Billy, With all 4 HDDS in the slots, boot with USB rootfs. Interrupt serial console and, Repeat the display commands md.l 0xF1010100 1 md.l 0xF1010140 1 And then run modify commands mw.l 0xF1010100 0x40008000 mw.l 0xF1010140 0x00003AA4 And then wait about 5 seconds (listen to hear if any spinup noise), and continue to boot with tftp. See if any of the HDDs will spin up.by bodhi - Debian
traxdata, > I get an error message: > insmod: ERROR: could not insert module > usbip-core.ko: Invalid parameters Instead of manually insmod or modprobe, have you tried starting the userspace usbip to see it can be loaded automtically?by bodhi - Debian
Hi sLOID, > I got it fixed with an original u-boot file, I > found across the net. For all of you who came here > via google: I have attached it to this message. Nice! I bookmarked it. I think I need to collect these stock u-boot dumps in the Wiki thread.by bodhi - uBoot
Billy, Please get these info from stock u-boot prompt. md.l 0xF1010000 8 md.l 0xF1010100 1 md.l 0xF1010140 1by bodhi - Debian