help flashing u-boot onto ix4-200d NAND February 02, 2021 01:51PM |
Registered: 2 years ago Posts: 12 |
Re: help flashing Sheevaplug u-boot onto ix4-200d NAND February 02, 2021 04:55PM |
Admin Registered: 12 years ago Posts: 17,916 |
Re: help flashing Sheevaplug u-boot onto ix4-200d NAND February 03, 2021 12:37AM |
Registered: 2 years ago Posts: 12 |
Re: help flashing Sheevaplug u-boot onto ix4-200d NAND February 03, 2021 04:07AM |
Admin Registered: 12 years ago Posts: 17,916 |
Re: help flashing Sheevaplug u-boot onto ix4-200d NAND February 03, 2021 04:11AM |
Registered: 2 years ago Posts: 12 |
Re: help flashing Sheevaplug u-boot onto ix4-200d NAND February 03, 2021 05:37AM |
Registered: 2 years ago Posts: 12 |
#install fuse and e2fsprogs will generate new initramfs root@iomega:~# sudo apt install --reinstall fuse e2fsprogs Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 2 reinstalled, 0 to remove and 65 not upgraded. Need to get 616 kB of archives. After this operation, 0 B of additional disk space will be used. Get:1 http://ftp.us.debian.org/debian buster/main armel e2fsprogs armel 1.44.5-1+deb10u3 [546 kB] Get:2 http://ftp.us.debian.org/debian buster/main armel fuse armel 2.9.9-1+deb10u1 [70.0 kB] Fetched 616 kB in 1s (580 kB/s) (Reading database ... 27990 files and directories currently installed.) Preparing to unpack .../e2fsprogs_1.44.5-1+deb10u3_armel.deb ... Preparing to unpack .../fuse_2.9.9-1+deb10u1_armel.deb ...0u3) ... Unpacking fuse (2.9.9-1+deb10u1) over (2.9.9-1+deb10u1) ... Setting up fuse (2.9.9-1+deb10u1) ... update-initramfs: deferring update (trigger activated) Setting up e2fsprogs (1.44.5-1+deb10u3) ... update-initramfs: deferring update (trigger activated) Processing triggers for man-db (2.8.5-2) ... Processing triggers for initramfs-tools (0.133) ... update-initramfs: Generating /boot/initrd.img-5.10.7-kirkwood-tld-1 I: The initramfs will attempt to resume from /dev/sda3 I: (UUID=82901f44-1a2b-40c4-96c5-087eb009f471) I: Set the RESUME variable to override this.
root@iomega# cd ~/_newkernel #copy the newly generated initrd to current dir and continue following guide on Kirkwood Debian page https://forum.doozan.com/read.php?2,12096 root@iomega:~/_newkernel# cp /boot/initrd.img-5.10.7-kirkwood-tld-1 ./ root@iomega:~/_newkernel# cp -a zImage-5.10.7-kirkwood-tld-1 zImage.fdt root@iomega:~/_newkernel# cat dts/kirkwood-iomega_ix4_200d.dtb >> zImage.fdt root@iomega:~/_newkernel# mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n 5.10.7-kirkwood-tld-1 -d zImage.fdt uImage-5.10.7-v2 initrd.img-5.10.7-kirkwood-tld-1 0 -e 0x00008000 -n 5.10.7-kirkwood-tld-1 -d zImage.fdt uImage-5.10.7-v2x00008000 Image Name: 5.10.7-kirkwood-tld-1 Created: Wed Feb 3 11:58:40 2021 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 5325730 Bytes = 5200.91 KiB = 5.08 MiB Load Address: 00008000 Entry Point: 00008000 root@iomega:~/_newkernel# mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-5.10.7-kirkwood-tld-1 -d initrd.img-5.10.7-kirkwood-tld-1 uInitrd-5.10.7-v2 Image Name: initramfs-5.10.7-kirkwood-tld-1 Created: Wed Feb 3 11:58:47 2021 Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 9567229 Bytes = 9343.00 KiB = 9.12 MiB Load Address: 00000000 Entry Point: 00000000
__ __ _ _ | \/ | __ _ _ ____ _____| | | | |\/| |/ _` | '__\ \ / / _ \ | | | | | | (_| | | \ V / __/ | | |_| |_|\__,_|_| \_/ \___|_|_| _ _ ____ _ | | | | | __ ) ___ ___ | |_ | | | |___| _ \ / _ \ / _ \| __| | |_| |___| |_) | (_) | (_) | |_ \___/ |____/ \___/ \___/ \__| ** uboot_ver:v1.1.1 ** ** MARVELL BOARD: IX4-110 LE U-Boot 1.1.4 (Mar 10 2011 - 15:01:57) Marvell version: 3.4.18 U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CF600 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 Found 0x20 i2c device Set Power State as Always On Addresses 8M - 0M are saved for the U-Boot usage. Mem malloc Initialization (8M - 7M): Done NAND:32 MB Found ADT7473, program LED ...(led_volt=90) OK Found ADT7473, program thermal/Fan ...(pwm_min=0) (pwm_max=130) (therm=67) (temp_min=60) OK Marvell Serial ATA Adapter Integrated Sata device found CPU : Marvell Feroceon (Rev 1) Found initrd at 0x1000000 Streaming disabled Write allocate disabled Module 0 is RGMII Module 1 is RGMII USB 0: host mode PEX 0: PCI Express Root Complex Interface PEX interface detected Link X1 SCSI: AHCI 0001.0000 32 slots 3 ports 3 Gbps 0x7 impl IDE mode flags: 64bit ncq stag led pmp slum part scanning bus for devices... Device 0: (0:0) Vendor: ATA Prod.: WDC WD30EFRX-68E Rev: 82.0 Type: Hard Disk Capacity: 764436.4 MB = 746.5 GB (1565565872 x 512) Device 1: (1:0) Vendor: ATA Prod.: WDC WD30EFRX-68E Rev: 82.0 Type: Hard Disk Capacity: 764436.4 MB = 746.5 GB (1565565872 x 512) Net: egiga0 [PRIME], egiga1 Hit any key to stop autoboot: 0 Marvell>> Marvell>>
Marvell>> tftpboot 0x2000000 uImage-5.10.7-v2 Using egiga0 device TFTP from server 10.0.0.238; our IP address is 10.0.0.5 Filename 'uImage-5.10.7-v2'. Load address: 0x2000000 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# # done Bytes transferred = 5325794 (5143e2 hex)and note the transferred HEX bytes 5143e2
Marvell>> tftpboot 0x12000000 uInitrd-5.10.7-v2 Using egiga0 device TFTP from server 10.0.0.238; our IP address is 10.0.0.5 Filename 'uInitrd-5.10.7-v2'. Load address: 0x12000000 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################# done Bytes transferred = 9567293 (91fc3d hex)and note the HEX size 91fc3d
Marvell>> printenv bootdelay=1 baudrate=115200 loads_echo=0 rootpath=/mnt/ARM_FS/ run_diag=yes CASset=min MALLOC_len=1 ethprime=egiga0 bootargs_end=:::DB88FXX81:eth0:none image_name=uImage console=console=ttyS0,115200 mtdparts=nand_mtd:0xa0000@0x0(uboot),0x00010000@0x000a0000(param),32m@0x0(flash) uboot_start=0x0 uboot_size=0xa0000 env_start=0xa0000 env_size=0x10000 kernel_start=0xb0000 flash_load=run make_boot_args;nand read.e 0x2000000 $(kernel_start) $(kernel_size);nand read.e 0x12000000 $(initrd_start) $(initrd_size);bootm 0x2000000 0x12000000; bootcmd=run flash_load; standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end); bootm 0x2000000; ethmtu=1500 mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500 usb0Mode=host nandEcc=1bit netretry=no rcvrip=169.254.100.100 loadaddr=0x02000000 autoload=no uboot_ver=v1.1.1 kernel_size=0x4be192 initrd_size=0x943910 rootfs=LABEL=rootfs bootargs=console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 bootargs_root=root=LABEL=rootfs make_boot_args=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=nand_mtd:0xa0000@0x0(uboot),0x10000@0xa0000(env),0x4be192@0xb0000(zImage),0x943910@0x1000000(initrd),32m@0x0(flash) ethaddr=00:50:43:86:1a:36 stdin=serial stdout=serial stderr=serial mainlineLinux=no enaMonExt=no enaCpuStream=no enaWrAllo=no pexMode=RC disL2Cache=no setL2CacheWT=yes disL2Prefetch=yes enaICPref=yes enaDCPref=yes sata_dma_mode=yes netbsd_en=no vxworks_en=no initrd_start=0x1000000 disaMvPnp=no eth1addr=00:50:43:86:1a:37 enaAutoRecovery=yes pcieTune=no ethact=egiga0 filesize=91fc3d fileaddr=12000000 netmask=255.255.255.0 ipaddr=10.0.0.5 serverip=10.0.0.238 Environment size: 1720/16380 bytes
Marvell>> bootm 0x2000000 0x12000000 ## Booting image at 02000000 ... Image Name: 5.10.7-kirkwood-tld-1 Created: 2021-02-03 10:58:40 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 5325730 Bytes = 5.1 MB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK OK ## Loading Ramdisk Image at 12000000 ... Image Name: initramfs-5.10.7-kirkwood-tld-1 Created: 2021-02-03 10:58:47 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 9567229 Bytes = 9.1 MB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Starting kernel ... Uncompressing Linux... done, booting the kernel. blablabla. ... ... ... Debian GNU/Linux 10 iomega ttyS0 iomega login: root Password: Last login: Wed Feb 3 11:45:07 CET 2021 on ttyS0 Linux iomega 5.10.7-kirkwood-tld-1 #1.0 PREEMPT Thu Jan 14 20:28:12 PST 2021 armv5tel root@iomega:~# e2 e2freefrag e2fsck e2image e2label e2mmpstatus e2undo#works, it booted without provblems, e2fsck is there, so let's burn the initrd and kernel into NAND
Marvell>> tftpboot 0x2000000 uImage-5.10.7-v2 Using egiga0 device TFTP from server 10.0.0.238; our IP address is 10.0.0.5 Filename 'uImage-5.10.7-v2'. Load address: 0x2000000 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# # done Bytes transferred = 5325794 (5143e2 hex) Marvell>> tftpboot 0x12000000 uInitrd-5.10.7-v2 Using egiga0 device TFTP from server 10.0.0.238; our IP address is 10.0.0.5 Filename 'uInitrd-5.10.7-v2'. Load address: 0x12000000 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################# done Bytes transferred = 9567293 (91fc3d hex)
Marvell>> nand erase 0xb0000 0x5143e2 NAND erase: device 0 offset 0xb0000, size 0x5143e2 Erasing at 0x5c4000 -- 100% complete. OK Marvell>> nand erase 0x1000000 0x91fc3d NAND erase: device 0 offset 0x1000000, size 0x91fc3d Erasing at 0x191c000 -- 100% complete. OK
Marvell>> nand write.e 0x2000000 0x0b0000 0x5143e2 NAND write: device 0 offset 0xb0000, size 0x5143e2 Writing data at 0x5c4200 -- 100% complete. 5325794 bytes written: OK Marvell>> nand write.e 0x12000000 0x1000000 0x91fc3d NAND write: device 0 offset 0x1000000, size 0x91fc3d Writing data at 0x191fc00 -- 100% complete. 9567293 bytes written: OK
Marvell>> setenv kernel_size 0x5143e2 Marvell>> setenv initrd_size 0x91fc3d Marvell>> saveenv Saving Environment to NAND... Erasing Nand...Writing to Nand... done
Re: help flashing Sheevaplug u-boot onto ix4-200d NAND February 03, 2021 03:42PM |
Admin Registered: 12 years ago Posts: 17,916 |
Re: help flashing Sheevaplug u-boot onto ix4-200d NAND February 03, 2021 03:46PM |
Registered: 2 years ago Posts: 12 |
Re: help flashing Sheevaplug u-boot onto ix4-200d NAND February 03, 2021 03:53PM |
Admin Registered: 12 years ago Posts: 17,916 |
modprobe cifs
update-initramfs -u
Re: help flashing Sheevaplug u-boot onto ix4-200d NAND February 03, 2021 03:54PM |
Registered: 2 years ago Posts: 12 |
root@iomega:~# modprobe cifs modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/5.10.7-kirkwood-tld-1/modules.dep.bin' modprobe: FATAL: Module cifs not found in directory /lib/modules/5.10.7-kirkwood-tld-1 root@iomega:~# cd /lib/modules/ root@iomega:/lib/modules# ls . .. 5.2.9-kirkwood-tld-1 root@iomega:/lib/modules# ln -s ./5.2.9-kirkwood-tld-1/ ./5.10.7-kirkwood-tld-1 root@iomega:/lib/modules# ls -la total 12 drwxr-xr-x 3 root root 4096 Feb 3 23:04 . drwxr-xr-x 13 root root 4096 Aug 25 2019 .. lrwxrwxrwx 1 root root 23 Feb 3 23:04 5.10.7-kirkwood-tld-1 -> ./5.2.9-kirkwood-tld-1/ drwxr-xr-x 3 root root 4096 Aug 25 2019 5.2.9-kirkwood-tld-1 root@iomega:/lib/modules# modprobe cifs modprobe: ERROR: could not insert 'cifs': Exec format error
Re: help flashing Sheevaplug u-boot onto ix4-200d NAND February 03, 2021 04:13PM |
Registered: 2 years ago Posts: 12 |
Re: help flashing Sheevaplug u-boot onto ix4-200d NAND February 03, 2021 10:23PM |
Admin Registered: 12 years ago Posts: 17,916 |
Re: help flashing Sheevaplug u-boot onto ix4-200d NAND April 20, 2021 06:19AM |
Registered: 2 years ago Posts: 5 |
Re: help flashing Sheevaplug u-boot onto ix4-200d NAND April 20, 2021 06:29AM |
Registered: 2 years ago Posts: 12 |
Re: help flashing Sheevaplug u-boot onto ix4-200d NAND April 20, 2021 06:44AM |
Registered: 2 years ago Posts: 5 |
Re: help flashing Sheevaplug u-boot onto ix4-200d NAND April 20, 2021 08:44AM |
Registered: 2 years ago Posts: 12 |
Re: help flashing Sheevaplug u-boot onto ix4-200d NAND April 20, 2021 04:30PM |
Admin Registered: 12 years ago Posts: 17,916 |
Re: help flashing Sheevaplug u-boot onto ix4-200d NAND April 21, 2021 12:06AM |
Registered: 2 years ago Posts: 12 |
Re: help flashing Sheevaplug u-boot onto ix4-200d NAND April 21, 2021 12:17AM |
Admin Registered: 12 years ago Posts: 17,916 |
Re: help flashing u-boot onto ix4-200d NAND April 21, 2021 12:47AM |
Registered: 2 years ago Posts: 5 |
Quote
bodhi
Note that with older u-boot such as 2012 or earlier, or stock u-boot, the Stretch rootfs Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2 (24 Jul 2017), or older rootfs, should be used.
Re: help flashing u-boot onto ix4-200d NAND April 21, 2021 02:26AM |
Admin Registered: 12 years ago Posts: 17,916 |
Quote
bodhi
> Note that with older u-boot such as 2012 or
> earlier, or stock u-boot, the Stretch rootfs
> Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2
> (24 Jul 2017), or older rootfs, should be used.
>
Re: help flashing u-boot onto ix4-200d NAND April 21, 2021 02:37AM |
Registered: 2 years ago Posts: 5 |
Re: help flashing u-boot onto ix4-200d NAND April 21, 2021 05:10PM |
Admin Registered: 12 years ago Posts: 17,916 |
Quote
> According to this i can work with lastest kernel
> "linux-5.11.4-kirkwood-tld-1-bodhi.tar.bz2 (13 Mar
> 2021)" with rootfs of 4.12.1 right?
>
Sure, it is in this link, you mentioned it with red color at note part.
Linux Kernel 5.11.4 Kirkwood package and Debian rootfs
Re: help flashing u-boot onto ix4-200d NAND May 06, 2021 05:24AM |
Registered: 2 years ago Posts: 5 |
setenv usb_make_boot_args 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:$(uboot_size)@$(uboot_start)(uboot),$(env_size)@$(env_start)(env),$(kernel_size)@$(kernel_start)(zImage),$(initrd_size)@$(initrd_start)(initrd),32m@0x0(flash) earlyprintk=serial' setenv load_initrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd' setenv load_uimage 'ext2load usb 0:1 0x40000 /boot/uImage' setenv usb_boot 'usb start; run load_uimage; run load_initrd; bootm 0x40000 0x2100000' setenv bootcmd 'run usb_make_boot_args ; run usb_boot; reset' boot