Re: Linux Kernel 4.1 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs August 27, 2015 12:03PM |
Registered: 9 years ago Posts: 18 |
Quote
Updated 24 Feb 2015:
This rootfs is the first Debian jessie rootfs in my Kirkwood kernel/rootfs release series, and to keep in sync with kernel Linux-3.18.5-kirkwood-tld-1.
arcNumber=4495 baudrate=115200 bootcmd=run bootcmd_uenv; run bootcmd_usb; run bootcmd_mmc; run bootcmd_sata; reset bootcmd_mmc=run mmc_init; run set_bootargs_mmc; run mmc_boot bootcmd_sata=run sata_init; run set_bootargs_sata; run sata_boot; bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi bootcmd_usb=run usb_init; run set_bootargs_usb; run usb_boot; bootdelay=3 console=ttyS0,115200 device=0:1 ethact=egiga0 ethaddr=b6:d0:5e:0f:a1:17 if_netconsole=ping $serverip ipaddr=192.168.0.231 led_error=orange blinking led_exit=green off led_init=green blinking mainlineLinux=yes mmc_boot=mw 0x800000 0 1; run mmc_load_uimage; if run mmc_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi mmc_init=mmc rescan mmc_load_uimage=ext2load mmc $device 0x800000 /boot/uImage mmc_load_uinitrd=ext2load mmc $device 0x1100000 /boot/uInitrd mmc_root=/dev/mmcblk0p1 mtddevname=rootfs mtddevnum=2 mtdids=nand0=orion_nand mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) partition=nand0,2 preboot_nc=run if_netconsole start_netconsole rootdelay=5 rootfstype=ext4 sata_boot=mw 0x800000 0 1; run sata_load_uimage; if run sata_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi sata_init=ide reset sata_load_uimage=ext4load ide $device 0x800000 /boot/uImage sata_load_uinitrd=ext4load ide $device 0x1100000 /boot/uInitrd sata_root=/dev/sda1 serverip=192.168.0.220 set_bootargs_mmc=setenv bootargs console=$console root=$mmc_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts set_bootargs_sata=setenv bootargs console=$console root=$sata_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version; stderr=serial stdin=serial stdout=serial uenv_import=echo importing envs ...; env import -t 0x810000 uenv_load=usb start; mmc rescan; ide reset; setenv uenv_loaded 0; for devtype in usb mmc ide; do for disknum in 0; do run uenv_read_disk; done; done uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 0x810000 /boot/uEnv.txt; then setenv uenv_loaded 1; fi uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read; fi; else if $devtype part $disknum; then run uenv_read; fi; fi usb_boot=mw 0x800000 0 1; run usb_load_uimage; if run usb_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi usb_init=usb start usb_load_uimage=ext2load usb $device 0x800000 /boot/uImage usb_load_uinitrd=ext2load usb $device 0x1100000 /boot/uInitrd usb_root=/dev/sda1 Environment size: 2844/131068 bytes- uname -a from my linux virtualmachine which I use (Latest and up to date Debian XFCE edition)
Linux debian 3.16.0-4-586 #1 Debian 3.16.7-ckt11-1+deb8u3 (2015-08-04) i686 GNU/Linux- mkimage version (after install via apt-get install u-boot-tools, before that the command wasn't recognized)
mkimage version 2014.10+dfsg1-5- list of boot directory in rootfs before performing all the steps in 4
totaal 32516 -rwxrwx--- 1 root vboxsf 131204 feb 6 2015 config-3.18.5-kirkwood-tld-1 drwxrwx--- 1 root vboxsf 2414 feb 6 2015 dts -rwxrwx--- 1 root vboxsf 6535220 feb 19 2015 initrd.img-3.18.5-kirkwood-tld-1 -rwxrwx--- 1 root vboxsf 9460784 feb 6 2015 linux-headers-3.18.5-kirkwood-tld-1_1_armel.deb -rwxrwx--- 1 root vboxsf 2019506 feb 6 2015 System.map-3.18.5-kirkwood-tld-1 -rwxrwx--- 1 root vboxsf 2865664 feb 8 2015 uImage -rwxrwx--- 1 root vboxsf 6535284 feb 19 2015 uInitrd -rwxrwx--- 1 root vboxsf 2865600 feb 6 2015 vmlinuz-3.18.5-kirkwood-tld-1 -rwxrwx--- 1 root vboxsf 2865600 feb 6 2015 zImage-3.18.5-kirkwood-tld-1- executed steps in 4
root@debian:/Debian-3.18.5-kirkwood-tld-1-rootfs-bodhi/boot# cp -a zImage-3.18.5-kirkwood-tld-1 zImage.fdt root@debian:/Debian-3.18.5-kirkwood-tld-1-rootfs-bodhi/boot# cat dts/kirkwood-nsa325.dtb >> zImage.fdt root@debian:/Debian-3.18.5-kirkwood-tld-1-rootfs-bodhi/boot# mv uImage uImage.orig root@debian:/Debian-3.18.5-kirkwood-tld-1-rootfs-bodhi/boot# mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-3.18.5-kirkwood-tld-1 -d zImage.fdt uImage mkimage: Can't map uImage: Invalid argument root@debian:/Debian-3.18.5-kirkwood-tld-1-rootfs-bodhi/boot# sync- list of boot directory in rootfs after performing all the steps in 4
totaal 38148 -rwxrwx--- 1 root vboxsf 131204 feb 6 2015 config-3.18.5-kirkwood-tld-1 drwxrwx--- 1 root vboxsf 2414 feb 6 2015 dts -rwxrwx--- 1 root vboxsf 6535220 feb 19 2015 initrd.img-3.18.5-kirkwood-tld-1 -rwxrwx--- 1 root vboxsf 9460784 feb 6 2015 linux-headers-3.18.5-kirkwood-tld-1_1_armel.deb -rwxrwx--- 1 root vboxsf 2019506 feb 6 2015 System.map-3.18.5-kirkwood-tld-1 -rwxrwx--- 1 root vboxsf 2879926 aug 28 07:01 uImage -rwxrwx--- 1 root vboxsf 2865664 feb 8 2015 uImage.orig -rwxrwx--- 1 root vboxsf 6535284 feb 19 2015 uInitrd -rwxrwx--- 1 root vboxsf 2865600 feb 6 2015 vmlinuz-3.18.5-kirkwood-tld-1 -rwxrwx--- 1 root vboxsf 2865600 feb 6 2015 zImage-3.18.5-kirkwood-tld-1 -rwxrwx--- 1 root vboxsf 2879862 aug 28 07:01 zImage.fdt
Wrong Image Format for bootm command Error occured, error code = 112 ERROR: can't get kernel image! resetting ...
Re: Linux Kernel 4.1 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs August 27, 2015 04:21PM |
Admin Registered: 13 years ago Posts: 19,106 |
>Quote
Updated 24 Feb 2015:
> This rootfs is the first Debian jessie rootfs in
> my Kirkwood kernel/rootfs release series, and to
> keep in sync with kernel
> Linux-3.18.5-kirkwood-tld-1.
> root@debian:/Debian-3.18.5-kirkwood-tld-1-rootfs-b > odhi/boot# mkimage -A arm -O linux -T kernel -C > none -a 0x00008000 -e 0x00008000 -n > Linux-3.18.5-kirkwood-tld-1 -d zImage.fdt uImage > mkimage: Can't map uImage: Invalid argument >>
> Wrong Image Format for bootm commeand > Error occured, error code = 112 > ERROR: can't get kernel image! > resetting ... >
Re: Linux Kernel 4.1 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs August 28, 2015 12:16AM |
Registered: 9 years ago Posts: 18 |
Re: Linux Kernel 4.1 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs August 28, 2015 01:35AM |
Admin Registered: 13 years ago Posts: 19,106 |
Re: Linux Kernel 4.1 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs August 28, 2015 10:44AM |
Registered: 9 years ago Posts: 25 |
Total DISK READ : 47.21 M/s | Total DISK WRITE : 47.26 M/s Actual DISK READ: 46.84 M/s | Actual DISK WRITE: 55.85 M/sCpu on 100% constantly, Im on latest uBoot and kernel.
Re: Linux Kernel 4.1 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs August 28, 2015 01:41PM |
Registered: 11 years ago Posts: 80 |
Re: Linux Kernel 4.1 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs August 28, 2015 01:59PM |
Registered: 9 years ago Posts: 25 |
Re: Linux Kernel 4.1 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs August 28, 2015 02:20PM |
Registered: 11 years ago Posts: 80 |
Re: Linux Kernel 4.1 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs August 28, 2015 03:30PM |
Registered: 9 years ago Posts: 18 |
Re: Linux Kernel 4.1 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs August 28, 2015 04:00PM |
Admin Registered: 13 years ago Posts: 19,106 |
Re: Linux Kernel 4.1 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs August 29, 2015 12:49AM |
Registered: 9 years ago Posts: 18 |
Re: Linux Kernel 4.1 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs August 29, 2015 01:45PM |
Admin Registered: 13 years ago Posts: 19,106 |
Re: Linux Kernel 4.1 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs August 29, 2015 02:06PM |
Registered: 9 years ago Posts: 25 |
Re: Linux Kernel 4.1 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs August 29, 2015 02:12PM |
Admin Registered: 13 years ago Posts: 19,106 |
Re: Linux Kernel 4.1 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs August 29, 2015 11:13PM |
Admin Registered: 13 years ago Posts: 19,106 |
Re: Linux Kernel 4.1 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs August 30, 2015 01:11AM |
Registered: 11 years ago Posts: 80 |
dd if=/dev/sda of=/dev/null
Re: Linux Kernel 4.1 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs August 30, 2015 01:35AM |
Registered: 9 years ago Posts: 25 |
# cat /sys/block/sda/queue/scheduler noop deadline [cfq] # echo deadline > /sys/block/sda/queue/scheduler # cat /sys/block/sda/queue/scheduler noop [deadline] cfqSlighly better instead of 100% its shows me 85-90%.
root@nas:~# hdparm -Tt /dev/sda /dev/sda: Timing cached reads: 556 MB in 2.00 seconds = 277.38 MB/sec Timing buffered disk reads: 262 MB in 3.02 seconds = 86.65 MB/sec root@nas:~# hdparm -Tt /dev/sdb /dev/sdb: Timing cached reads: 622 MB in 2.00 seconds = 310.43 MB/sec Timing buffered disk reads: 428 MB in 3.01 seconds = 142.40 MB/sec
Total DISK READ : 47.21 M/s | Total DISK WRITE : 47.26 M/s Actual DISK READ: 46.84 M/s | Actual DISK WRITE: 55.85 M/s
time sh -c "dd if=/dev/zero of=testfile bs=100k count=1k && sync" 1024+0 records in 1024+0 records out 104857600 bytes (105 MB) copied, 1.09346 s, 95.9 MB/s
Re: Linux Kernel 4.1 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs August 30, 2015 03:54AM |
Admin Registered: 13 years ago Posts: 19,106 |
Re: Linux Kernel 4.2 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs September 05, 2015 03:36AM |
Admin Registered: 13 years ago Posts: 19,106 |
Re: Linux Kernel 4.2 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs September 08, 2015 04:32AM |
Registered: 14 years ago Posts: 34 |
Re: Linux Kernel 4.2 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs September 08, 2015 12:17PM |
Registered: 9 years ago Posts: 9 |
Re: Linux Kernel 4.2 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs September 08, 2015 12:17PM |
Admin Registered: 13 years ago Posts: 19,106 |
Re: Linux Kernel 4.2 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs September 08, 2015 01:11PM |
Admin Registered: 13 years ago Posts: 19,106 |
printenv
Re: Linux Kernel 4.2 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs September 08, 2015 01:16PM |
Registered: 9 years ago Posts: 9 |
bootdelay=2 baudrate=115200 loads_echo=0 eth1addr=00:19:CB:00:51:82 rootpath=/mnt/ARM_FS/ netmask=255.255.255.0 nandEcc=1bit MODEL_ID=A203 PRODUCT_NAME=NSA-310 FEATURE_BIT=00 CONTRY_TYPE=FF VENDOR_NAME=ZyXEL Communications Corp. run_diag=yes ethaddr=CC:5D:4E:CA:01:39 console=100000 =ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x7f00000@0x100000(root) CASset=min ethprime=egiga1 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; 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 netretry=no rcvrip=169.254.100.100 loadaddr=0x02000000 autoload=no arcNumber=4022 MALLOC_len=3 usb_set_arg==ahoj stdin=serial stdout=serial stderr=serial nandEnvBase=100000 mainlineLinux=yes 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 disaMvPnp=no hddPowerCtrl=no enaAutoRecovery=yes kernel_addr=0x4640000 pcieTune=no ethact=egiga1 bootcmd=usb start; ext2load usb 0:1 0x8000000 /uImage; bootm 0x8000000 serverip=10.0.0.164 ipaddr=10.0.0.130 if_netconsole=ping $serverip start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version; preboot=run if_netconsole start_netconsole bootargs=console=ttyS0,115200 root=/dev/sdb2 rootdelay=20 debug
Re: Linux Kernel 4.2 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs September 08, 2015 02:28PM |
Admin Registered: 13 years ago Posts: 19,106 |
> bootdelay=2 > baudrate=115200 > loads_echo=0 > eth1addr=00:19:CB:00:51:82 > rootpath=/mnt/ARM_FS/ > netmask=255.255.255.0 > nandEcc=1bit > MODEL_ID=A203 > PRODUCT_NAME=NSA-310 > FEATURE_BIT=00 > CONTRY_TYPE=FF > VENDOR_NAME=ZyXEL Communications Corp. > run_diag=yes > ethaddr=CC:5D:4E:CA:01:39 > console=100000 > =ttyS0,115200 > mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x7f00000@0x1 > 00000(root) > CASset=min > ethprime=egiga1 > 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; > 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 > netretry=no > rcvrip=169.254.100.100 > loadaddr=0x02000000 > autoload=no > arcNumber=4022 > MALLOC_len=3 > usb_set_arg==ahoj > stdin=serial > stdout=serial > stderr=serial > nandEnvBase=100000 > mainlineLinux=yes > 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 > disaMvPnp=no > hddPowerCtrl=no > enaAutoRecovery=yes > kernel_addr=0x4640000 > pcieTune=no > ethact=egiga1 > bootcmd=usb start; ext2load usb 0:1 0x8000000 > /uImage; bootm 0x8000000 > serverip=10.0.0.164 > ipaddr=10.0.0.130 > if_netconsole=ping $serverip > start_netconsole=setenv ncip $serverip; setenv > bootdelay 10; setenv stdin nc; setenv stdout nc; > setenv stderr nc; version; > preboot=run if_netconsole start_netconsole > bootargs=console=ttyS0,115200 root=/dev/sdb2 > rootdelay=20 debug >
/uInitrd
setenv bootcmd 'usb start; ext2load usb 0:1 0x8000000 /uImage; ext2load usb 0:1 0x1100000 /uInitrd; bootm 0x8000000 0x1100000' boot
fw_setenv bootcmd 'usb start; ext2load usb 0:1 0x8000000 /uImage; ext2load usb 0:1 0x1100000 /uInitrd; bootm 0x8000000 0x1100000'
Re: Linux Kernel 4.2 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs September 08, 2015 03:10PM |
Registered: 9 years ago Posts: 9 |
Re: Linux Kernel 4.2 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs September 08, 2015 03:23PM |
Admin Registered: 13 years ago Posts: 19,106 |
Re: Linux Kernel 4.2 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs September 08, 2015 11:10PM |
Registered: 14 years ago Posts: 34 |
Re: Linux Kernel 4.2 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs September 08, 2015 11:58PM |
Admin Registered: 13 years ago Posts: 19,106 |
Re: Linux Kernel 3.18 (FDT) and 3.16 (non-FDT) Kirkwood package and rootfs September 09, 2015 06:33AM |
Registered: 9 years ago Posts: 10 |