bodhi, it's a ZyXEL NSA325 v2 root@cat /proc/mtd dev: size erasesize name mtd0: 00100000 00020000 "uboot" mtd1: 00080000 00020000 "uboot_env" mtd2: 00080000 00020000 "key_store" mtd3: 00080000 00020000 "info" mtd4: 00a00000 00020000 "etc" mtd5: 00a00000 00020000 "kernel_1" mtd6: 02fc0000 00020000 "rootfs1&quoby lille - Debian
thank you for the clarification. i was assuming not seeing this 'ecc error' message before when i looked at the dmesg output. maybe I'm just wrong with this assumption. __nand_correct_data: uncorrectable ECC error __nand_correct_data: uncorrectable ECC error blk_update_request: I/O error, dev mtdblock5, sector 0 __nand_correct_data: uncorrectable ECC error __nand_corrby lille - Debian
Hi, if I do a blkid, I do get these errors root@nws:~# blkid [18327.978487] __nand_correct_data: uncorrectable ECC error [18327.983891] __nand_correct_data: uncorrectable ECC error [18327.989228] blk_update_request: I/O error, dev mtdblock5, sector 0 [18327.996072] __nand_correct_data: uncorrectable ECC error [18328.002917] __nand_correct_data: uncorrectable ECC error [18328.008257]by lille - Debian
I've built a debian package with bodhis latest Debian stretch Kirkwood rootfs on my NSA325. It's an 41M file but because of the file size I unfortunately can't attach it here for sharing. I do not use any cloud services for uploading files but I am for sure willing to share my created deb package of the LMS.by lille - Debian
No chance with the the uEnv.txt method. Tried it again. Still boots with sysVinit.by lille - Debian
installed systemd again. with setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts init=/bin/systemd' boot it now boots with systemd root@nws:~# ps --no-headers -o comm 1 systemd I´ll try to use the uEnv.txt mehtod with the custom_params=init=/bin/systemd variableby lille - Debian
as you could see, the set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts init=/bin/systemd change is reflected in the U-Boot environment. U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:42:03 -0700) ZyXEL NSA325 2-Bay Power Media Server gcc (Debian 6.3.0-18) 6.3.0 20170516 GNU ld (GNU Binutils for Debian) 2.28 NSA325> printenv arcNumber=4495 bby lille - Debian
the developer answered me and just fyi QuoteMichael > root@lms:~# perl -v > > This is perl 5, version 24, subversion 1 (v5.24.1) built for > arm-linux-gnueabi-thread-multi-64int Unfortunately we don't have support for this platform yet. You'll have to try to build yourself. -- Michael the pre-compiled binaries in the debian packages for arm won't wby lille - Debian
still no systemd U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:42:03 -0700) ZyXEL NSA325 2-Bay Power Media Server SoC: Kirkwood 88F6282_A1 DRAM: 512 MiB WARNING: Caches not enabled NAND: 128 MiB In: serial Out: serial Err: serial Net: egiga0 MV88E1318 PHY initialized on egiga0 Hit any key to stop autoboot: 0 NSA325> printenv arcNumber=4495 bootcmd=run bootcmd_uenv;by lille - Debian
with run bootcmd_uenv it doesn´t boot up NSA325> run bootcmd_uenv Reset IDE: Bus 0: OK Bus 1: not available Device 0: Model: ATP Velocity SII SSD Firm: 1002_0.4 Ser#: 9902610112900023 Type: Hard Disk Supports 48-bit addressing Capacity: 15272.0 MB = 14.9 GB (31277232 x 512) Partition Map for IDE device 0 -- Partition Type: DOS Partby lille - Debian
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize uenv_init_devices=setenv init_usb "usb start"; setenv init_ide "ide reset"; setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done; uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices; do for disknum in 0; do run uenv_read_disk; done; dby lille - Debian
sorry root@nws:~# fdisk -l Disk /dev/mtdblock0: 1 MiB, 1048576 bytes, 2048 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum[ 3159.909477] __nand_correct_data: uncorrectable ECC error /optimal): 512 b[ 3159.916131] __nand_correct_data: uncorrectable ECC error ytes / 512 bytes[ 3159.923226] blk_update_request: I/O errorby lille - Debian
still no systemd boot, PID 1 still on init U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:42:03 -0700) ZyXEL NSA325 2-Bay Power Media Server SoC: Kirkwood 88F6282_A1 DRAM: 512 MiB WARNING: Caches not enabled NAND: 128 MiB In: serial Out: serial Err: serial Net: egiga0 MV88E1318 PHY initialized on egiga0 Hit any key to stop autoboot: 0 NSA325> printenv arcNumber=44by lille - Debian
ok, bodhi, thanks for all the clarification. but let me go back to the original topic: booting with systemd I have created the uEnv.txt file in the boot directory and added just this one line custom_params=init=/bin/systemd root@nws:~# cat /boot/uEnv.txt custom_params=init=/bin/systemd I have also installed systemd again it still does not systemd boot with the custom_params=inby lille - Debian
guys, please lead me in the right direction... ;-) I have downloaded an deb package for arm from here http://downloads.slimdevices.com/LogitechMediaServer_v7.9.0/ but the binaries aren't working correctly.by lille - Debian
i know, i have LAN and WAN connectivity. that is why i don´t understand this specific kernel error message.by lille - Debian
here you go U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:42:03 -0700) ZyXEL NSA325 2-Bay Power Media Server SoC: Kirkwood 88F6282_A1 DRAM: 512 MiB WARNING: Caches not enabled NAND: 128 MiB In: serial Out: serial Err: serial Net: egiga0 MV88E1318 PHY initialized on egiga0 Hit any key to stop autoboot: 0 starting USB... USB0: USB EHCI 1.00 scanning bus 0 for devicby lille - Debian
bodhi Wrote: ------------------------------------------------------- > Cool! you can reboot. Thanks bodhi, now it is booting. One thing , if I do a dmesg there is an error : /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set root@xyz:~# cat /etc/network/interfaces auto lo eth0 iface lo inet loopback iface eth0 inet dhcp root@xyz:~# roby lille - Debian
repost root@nws:/tmp# fw_printenv bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; runby lille - Debian
step 8 done I still did not boot the box ;-) below the fw_printenv root@xyz:/tmp# fw_printenv bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then boo tm $load_uimage_addr $load_initrd_addr $load_dtb_addr; eby lille - Debian
thanks mate. here we go again, below info listed from debian root@xyz:~# cat /proc/mtd dev: size erasesize name mtd0: 00100000 00020000 "uboot" mtd1: 00080000 00020000 "uboot_env" mtd2: 00080000 00020000 "key_store" mtd3: 00080000 00020000 "info" mtd4: 00a00000 00020000 "etc" mtd5: 00a00000 00020000 "kernel_1" mtd6by lille - Debian
entire serial console log U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:42:03 -0700) ZyXEL NSA325 2-Bay Power Media Server SoC: Kirkwood 88F6282_A1 DRAM: 512 MiB WARNING: Caches not enabled NAND: 128 MiB In: serial Out: serial Err: serial Net: egiga0 MV88E1318 PHY initialized on egiga0 NSA325> usb start starting USB... USB0: USB EHCI 1.00 scanning bus 0 for devby lille - Debian
bodhi Wrote: ------------------------------------------------------- > lille , > > I'll rewrite it for SATA. I have used an usb stick in the meantime (nevertheless you could provide me with the commands for SATA if you´ll find the time for it). I´ve booted debian again. what´s next?by lille - Debian
I don't have physical access to the box until tomorrow. what are the *.scr script loading commands for loading from my SSD? In your instructions below the scr file is on an USB media connected via USB. I have an SSD connected to the SATA port. bodhi Wrote: ------------------------------------------------------- > On another Linux box, mount the Debian rootfs that > you meantby lille - Debian
Thank you so much. I did so many mistakes but they help me in understanding the U-boot process better. Apologies for asking so many dumb questions. Maybe I should read more about this embedded linux booting evironment variables and the memory technology behind it (mtd) just before entering commands not knowing what they really do in the first place. :Pby lille - Debian
only this fw_setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts init=/bin/systemd' I could mount the SSD on another Linux again. Which log do you need maybe I should add that I got Warning: Bad CRC, using default environment while setting the fw_setenv bootargs in the first place. the I run the sommand a secon time, this time witby lille - Debian
now u-boot doesn't boot into linux anymore. after powering the nsa325, it got stuck with a u-boot prompt only U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:42:03 -0700) ZyXEL NSA325 2-Bay Power Media Server SoC: Kirkwood 88F6282_A1 DRAM: 512 MiB WARNING: Caches not enabled NAND: 128 MiB In: serial Out: serial Err: serial Net: egiga0 MV88E1318 PHY initialized on egiga0by lille - Debian
bodhi, I have installed your latest U-Boot release NSA325> version U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:42:03 -0700) ZyXEL NSA325 2-Bay Power Media Server gcc (Debian 6.3.0-18) 6.3.0 20170516 GNU ld (GNU Binutils for Debian) 2.28 NSA325> regarding Note 2: "if you are booting with my latest u-boot images you can also use the uEnv.txt capability to do this. In the dby lille - Debian
thank you, bodhi. sometimes I am just plain old stupid. ;)by lille - Debian