NSA320 - Completely Stock OS 4.70 November 02, 2020 07:04AM |
Registered: 3 years ago Posts: 2 |
Re: NSA320 - Completely Stock OS 4.70 November 02, 2020 03:28PM |
Admin Registered: 13 years ago Posts: 18,898 |
Re: NSA320 - Completely Stock OS 4.70 November 12, 2020 02:53AM |
Registered: 3 years ago Posts: 2 |
Re: NSA320 - Completely Stock OS 4.70 November 12, 2020 05:44AM |
Registered: 3 years ago Posts: 28 |
Re: NSA320 - Completely Stock OS 4.70 December 09, 2020 09:15AM |
Registered: 3 years ago Posts: 11 |
Re: NSA320 - Completely Stock OS 4.70 January 05, 2021 06:24AM |
Registered: 10 years ago Posts: 14 |
Re: NSA320 - Completely Stock OS 4.70 March 08, 2021 07:59AM |
Registered: 3 years ago Posts: 24 |
reading NAND page at offset 0x4640000 failed 10485760 bytes read: ERROR ## Booting image at 02000000 ... Bad Magic Number
| \/ | __ _ _ ____ _____| | | | |\/| |/ _` | '__\ \ / / _ \ | | | | | | (_| | | \ V / __/ | | |_| |_|\__,_|_| \_/ \___|_|_| _ _ ____ _ | | | | | __ ) ___ ___ | |_ | | | |___| _ \ / _ \ / _ \| __| | |_| |___| |_) | (_) | (_) | |_ \___/ |____/ \___/ \___/ \__| ** MARVELL BOARD: RD-88F6281A LE U-Boot 1.1.4 (Mar 23 2011 - 16:09:39) Marvell version: 3.4.19 U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CFEE0 Soc: 88F6281 A1 (DDR2) CPU running @ 1200Mhz L2 running @ 400Mhz SysClock = 400Mhz , TClock = 200Mhz DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6 DRAM CS[0] base 0x00000000 size 256MB DRAM CS[1] base 0x10000000 size 256MB DRAM Total size 512MB 16bit width Addresses 10M - 0M are saved for the U-Boot usage. Mem malloc Initialization (10M - 7M): Done NAND:128 MB Flash: 0 kB CPU : Marvell Feroceon (Rev 1) //--- stateButtonBit = 3, recovery ---// Kernel address is 0x4640000. Streaming disabled Write allocate disabled Module 0 is RGMII Module 1 is TDM USB 0: host mode PEX 0: interface detected no Link. Net: egiga0, egiga1 [PRIME] Hit any key to stop autoboot: 0 NAND read: device 0 offset 0x4640000, size 0xa00000 reading NAND page at offset 0x4640000 failed 10485760 bytes read: ERROR ## Booting image at 02000000 ... Bad Magic Number NSA320>> version U-Boot 1.1.4 (Mar 23 2011 - 16:09:39) Marvell version: 3.4.19 NSA320>> sp Bus: 0 Device: 0 Func: 0 Vendor ID: 11ab Device ID: 6281 ------------------------------------------------------------------- Class: Memory controller PCI_BAR0 (Mem-64bit) base: 0f1000000 size: 1048576 bytes PCI_BAR1 (Mem-64bit) base: 000000000 size: 536870912 bytes NSA320>> sg PHY 0 : --------- Auto negotiation: Enabled Speed: 1000 Mbps Duplex: Half Link: down PHY 1 : --------- Auto negotiation: Enabled Speed: Uknown Duplex: Full Link: up NSA320>> dclk TCLK 200Mhz, SYSCLK 400Mhz (UART baudrate 115200) NSA320>> printinfo kernel_addr_1=0xc80000 kernel_mtd_1=5 sysimg_mtd_1=6 kernel_addr_2=0x4640000 kernel_mtd_2=7 sysimg_mtd_2=8 fwversion_1=V4.70(AFO.1) revision_1=41794 modelid_1=DD01 core_checksum_1=678f3d0f5000c5e00235856a6c186057 zld_checksum_1=15b8a3bfb65e6ad60f55fc7f23e76171 romfile_checksum_1=98E5 img_checksum_1=010c65c574d9a45f2a09f451a92c1611 fwversion_2=V4.70(AFO.3) revision_2=49435 modelid_2=DD01 core_checksum_2=81e0d1021bdce8c0cca99e237e21dc84 zld_checksum_2=6b7d0e43486e5cd6bec65016032ce081 romfile_checksum_2=B65B img_checksum_2=a1e743a41560dc3edcb22b943b199ec2 next_bootfrom=2 curr_bootfrom=2 Info size: 591/131068 bytes NSA320>> ide reset Reset IDE: Marvell Serial ATA Adapter Integrated Sata device found [0 0 0]: Enable DMA mode (6) Device 0 @ 0 0: Model: SAMSUNG HD501LJ Firm: CR100-10 Ser#: S0MUJ1MPXXXXXX Type: Hard Disk Supports 48-bit addressing Capacity: 476940.0 MB = 465.7 GB (976773168 x 512) [0 1 0]: Enable DMA mode (6) Device 1 @ 0 1: Model: ST4000DM005-2DP166 Firm: 0001 Ser#: XXXXXXXX Type: Hard Disk Supports 48-bit addressing Capacity: 1718295.8 MB = 1678.0 GB (-775897424 x 512) NSA320>> printenv bootargs=console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=/dev/nfs rw init=/init bootcmd=nand read.e 0x2000000 $(kernel_addr) 0xA00000; bootm 0x2000000 bootdelay=2 baudrate=115200 loads_echo=0 eth1addr=00:19:CB:00:51:82 ipaddr=10.4.50.165 serverip=10.4.50.5 rootpath=/mnt/ARM_FS/ netmask=255.255.255.0 nandEcc=1bit MODEL_ID=DD01 PRODUCT_NAME=NSA-320 FEATURE_BIT=00 CONTRY_TYPE=FF VENDOR_NAME=ZyXEL Communications Corp. run_diag=yes ethaddr=B0:B2:DC:F0:FF:12 stdin=serial stdout=serial stderr=serial console=console=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x7f00000@0x100000(root) mainlineLinux=no CASset=min enaMonExt=no enaCpuStream=no enaWrAllo=no pexMode=RC disL2Cache=no setL2CacheWT=yes disL2Prefetch=yes enaICPref=yes enaDCPref=yes sata_dma_mode=yes ethprime=egiga1 netbsd_en=no vxworks_en=no bootargs_root=root=/dev/nfs rw bootargs_end=:::DB88FXX81:eth0:none image_name=uImage standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000; disaMvPnp=no ethmtu=1500 eth1mtu=1500 mvPhoneConfig=mv_phone_config=dev0:fxs,dev1:fxs mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500 usb0Mode=host yuk_ethaddr=00:00:00:EE:51:81 hddPowerCtrl=no netretry=no rcvrip=169.254.100.100 loadaddr=0x02000000 autoload=no enaAutoRecovery=yes kernel_addr=0x4640000 pcieTune=no ethact=egiga1 Environment size: 1558/131068 bytes
Re: NSA320 - Completely Stock OS 4.70 March 09, 2021 02:19AM |
Admin Registered: 13 years ago Posts: 18,898 |
Quote
Updated 25 Aug 2019:
Basic Debian buster Kirkwood rootfs for most Kirwood plugs:
- tarball size: 209M
- install size: 536M
- The init system used in this rootfs is sysvinit . To boot with systemd, see note 2 below.
- Installed packages: nano, avahi, ntp, busybox-syslogd (log to RAM), htop, isc-dhcp-client, dialog, bzip2, nfs server/client, iperf, ethtool, sysvinit-core, sysvinit, sysvinit-utils, u-boot-tools, and mtd-utils.
- see LED controls in /etc/rc.local, and /etc/init.d/halt
- see some useful aliases in /root/.profile
- root password: root
Download at Dropbox:
Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2
boot
Re: NSA320 - Completely Stock OS 4.70 March 09, 2021 03:57PM |
Registered: 3 years ago Posts: 24 |
Re: NSA320 - Completely Stock OS 4.70 March 09, 2021 05:10PM |
Admin Registered: 13 years ago Posts: 18,898 |
Re: NSA320 - Completely Stock OS 4.70 March 11, 2021 11:15AM |
Registered: 3 years ago Posts: 24 |
| \/ | __ _ _ ____ _____| | | | |\/| |/ _` | '__\ \ / / _ \ | | | | | | (_| | | \ V / __/ | | |_| |_|\__,_|_| \_/ \___|_|_| _ _ ____ _ | | | | | __ ) ___ ___ | |_ | | | |___| _ \ / _ \ / _ \| __| | |_| |___| |_) | (_) | (_) | |_ \___/ |____/ \___/ \___/ \__| ** MARVELL BOARD: RD-88F6281A LE U-Boot 1.1.4 (Mar 23 2011 - 16:09:39) Marvell version: 3.4.19 U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CFEE0 Soc: 88F6281 A1 (DDR2) CPU running @ 1200Mhz L2 running @ 400Mhz SysClock = 400Mhz , TClock = 200Mhz DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6 DRAM CS[0] base 0x00000000 size 256MB DRAM CS[1] base 0x10000000 size 256MB DRAM Total size 512MB 16bit width Addresses 10M - 0M are saved for the U-Boot usage. Mem malloc Initialization (10M - 7M): Done NAND:128 MB Flash: 0 kB CPU : Marvell Feroceon (Rev 1) //--- stateButtonBit = 3, recovery ---// Kernel address is 0x4640000. Streaming disabled Write allocate disabled Module 0 is RGMII Module 1 is TDM USB 0: host mode PEX 0: interface detected no Link. Net: egiga0, egiga1 [PRIME] Hit any key to stop autoboot: 0 NSA320>> usb reset (Re)start USB... USB: scanning bus for devices... 2 USB Device(s) found scanning bus for storage devices... 0 Storage Device(s) found NSA320>> usb start (Re)start USB... USB: scanning bus for devices... 1 USB Device(s) found scanning bus for storage devices... 0 Storage Device(s) found NSA320>> usb stop stopping USB.. NSA320>> usb start (Re)start USB... USB: scanning bus for devices... 1 USB Device(s) found scanning bus for storage devices... 0 Storage Device(s) found NSA320>> usb reset (Re)start USB... USB: scanning bus for devices... 1 USB Device(s) found scanning bus for storage devices... 0 Storage Device(s) found NSA320>> usb reset (Re)start USB... USB: scanning bus for devices... 1 USB Device(s) found scanning bus for storage devices... 0 Storage Device(s) found NSA320>> usb start (Re)start USB... USB: scanning bus for devices... 1 USB Device(s) found scanning bus for storage devices... 0 Storage Device(s) found NSA320>>
Marvell>> boot (Re)start USB... USB: scanning bus for devices... 2 USB Device(s) found scanning bus for storage devices... 1 Storage Device(s) found
Re: NSA320 - Completely Stock OS 4.70 March 11, 2021 04:14PM |
Registered: 3 years ago Posts: 24 |
setenv ide_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial' setenv load_uimage 'ext2load ide 0:1 0x800000 /boot/uImage' setenv load_uinitrd 'ext2load ide 0:1 0x2100000 /boot/uInitrd' setenv ide_boot 'mw 0x800000 0 1; run load_uimage; run load_uinitrd; bootm 0x800000 0x2100000' setenv ide_bootcmd 'run ide_set_bootargs; run ide_boot' setenv bootcmd 'ide reset; ide start; run ide_bootcmd; ide stop; reset'
mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-5.2.9-kirkwood-tld-1 -d initrd.img-5.2.9-kirkwood-tld-1 uInitrdIf I see:
update-initramfs: Generating /boot/initrd.img-5.2.9-kirkwood-tld-1in the update/upgrade.
cp -a zImage-5.2.9-kirkwood-tld-1 zImage.fdt cat dts/kirkwood-goflexnet.dtb >> zImage.fdt mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.2.9-kirkwood-tld-1 -d zImage.fdt uImage
Re: NSA320 - Completely Stock OS 4.70 March 11, 2021 05:09PM |
Admin Registered: 13 years ago Posts: 18,898 |
update-initramfs: Generating /boot/initrd.img-5.2.9-kirkwood-tld-1
mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-5.2.9-kirkwood-tld-1 -d initrd.img-5.2.9-kirkwood-tld-1 uInitrd
cp -a zImage-5.2.9-kirkwood-tld-1 zImage.fdt cat dts/kirkwood-nsa320.dtb >> zImage.fdt mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.2.9-kirkwood-tld-1 -d zImage.fdt uImageSo you can see that this uImage creation does not have anything to do with the initramfs.