tejeskifly
Help with NSA310 kernel installation December 30, 2016 07:08AM |
Re: Help with NSA310 kernel installation December 30, 2016 03:11PM |
Admin Registered: 13 years ago Posts: 18,550 |
fw_printenv cat /proc/mtd cat /etc/fw_env.config
tejeskifly
Re: Help with NSA310 kernel installation January 02, 2017 07:15AM |
Re: Help with NSA310 kernel installation January 02, 2017 03:55PM |
Admin Registered: 13 years ago Posts: 18,550 |
Quote
Updated 17 Dec 2016:
Kernel linux-4.9.0-kirkwood-tld-1 package has been uploaded.
printenv
Re: Help with NSA310 kernel installation January 02, 2017 04:13PM |
Registered: 7 years ago Posts: 8 |
Re: Help with NSA310 kernel installation January 02, 2017 04:49PM |
Admin Registered: 13 years ago Posts: 18,550 |
Quote
Updated 20 Feb 2016:
This Debian-4.4.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2 is to keep in sync with kernel Linux-4.4.0-kirkwood-tld-1.
setenv mtdparts 'mtdparts=orion_nand:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2)' setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $(mtdparts)' setenv bootcmd 'run set_bootargs; run bootcmd_exec' setenv bootcmd_exec 'usb start; ext2load usb 0:1 0x800000 /boot/uImage; ext2load usb 0:1 0x1100000 /boot/uInitrd; bootm 0x800000 0x1100000'And then boot to Debian
boot
Re: Help with NSA310 kernel installation January 04, 2017 03:36AM |
Registered: 7 years ago Posts: 8 |
Re: Help with NSA310 kernel installation January 04, 2017 06:03AM |
Admin Registered: 13 years ago Posts: 18,550 |
Re: Help with NSA310 kernel installation January 04, 2017 04:24PM |
Registered: 7 years ago Posts: 8 |
Quote
- And your mtd partitions should be:
cat /proc/mtd
dev: size erasesize name
mtd0: 00100000 00020000 "u-boot"
mtd1: 00400000 00020000 "uImage"
mtd2: 02000000 00020000 "rootfs"
mtd3: 0db00000 00020000 "data"
Re: Help with NSA310 kernel installation January 04, 2017 08:37PM |
Admin Registered: 13 years ago Posts: 18,550 |
>Quote
- And your mtd partitions should be:
>
> cat /proc/mtd
>
> dev: size erasesize name
> mtd0: 00100000 00020000 "u-boot"
> mtd1: 00400000 00020000 "uImage"
> mtd2: 02000000 00020000 "rootfs"
> mtd3: 0db00000 00020000 "data"
Quote
If you don't have /etc/fw_env.config file in your system then go ahead and create this file with the above content. MTD parts are not importan for booting and it can be adjusted later. For users who like to keep the stock mtd definition, there is no need to adjust it to the above definition. As long as mtd0 is defined as 1MB (0x 00100000) or greater then it will be OK:
mtd0: 00100000 00020000 "u-boot"
Re: Help with NSA310 kernel installation January 06, 2017 01:33PM |
Registered: 7 years ago Posts: 8 |
Re: Help with NSA310 kernel installation January 06, 2017 03:43PM |
Admin Registered: 13 years ago Posts: 18,550 |
Re: Help with NSA310 kernel installation January 08, 2017 03:45AM |
Registered: 7 years ago Posts: 8 |
Re: Help with NSA310 kernel installation January 08, 2017 05:36AM |
Admin Registered: 13 years ago Posts: 18,550 |
Re: Help with NSA310 kernel installation January 08, 2017 02:43PM |
Registered: 7 years ago Posts: 8 |
Re: Help with NSA310 kernel installation January 08, 2017 05:13PM |
Admin Registered: 13 years ago Posts: 18,550 |
Re: Help with NSA310 kernel installation January 10, 2017 10:55AM |
Registered: 7 years ago Posts: 8 |
NSA310> printenv arcNumber=4022 baudrate=115200 bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; run bootcmd_recovery; bootcmd_exec=usb start; ext2load usb 0:1 0x800000 /boot/uImage; ext2load usb 0:1 0x1100000 /boot/uInitrd; bootm 0x800000 0x1100000 bootcmd_recovery=run set_recovery_bootargs; nand read 0x800000 nand0,7 ; bootm 0x800000 bootcmd_sata=run sata_init; run set_bootargs_sata; run sata_boot bootcmd_uenv=run uenv_load; if test -eq 1; then run uenv_import; fi; sleep 3 bootcmd_usb=run usb_init; run set_bootargs_usb; run usb_boot bootdelay=10 console=ttyS0,115200 device=0:1 dtb_file=/boot/dts/kirkwood-nsa310b-lmsensor-redusbled.dtb ethact=egiga0 ethaddr=b6:d0:5e:0f:a1:17 led_error=orange blinking led_exit=green off led_init=green blinking mainlineLinux=yes mtdids=nand0=orion_nand mtdparts=mtdparts=orion_nand: mtdparts_recovery=mtdparts=orion_nand:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(nope_kernel_1),0x2FC0000(nope_rootfs1),0xA00000(kernel),0x2FC0000(rootfs) partition=nand0,2 rootdelay=10 rootfstype=ext2 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=ext2load ide $device 0x800000 /boot/uImage sata_load_uinitrd=ext2load ide $device 0x1100000 /boot/uInitrd sata_root=/dev/sda1 set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $(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 set_recovery_bootargs=setenv bootargs console=ttyS0,115200 rootdelay=10 $mtdparts_recovery stderr=serial stdin=serial stdout=serial uenv_import=echo importing envs ...; env import -t 0x810000 uenv_load=usb start; setenv uenv_loaded 0; for devtype in usb; 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 $devtype part $disknum; then run uenv_read; 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: 2604/131068 bytes
root@debian:~# e2label /dev/sda1 rootfs
Re: Help with NSA310 kernel installation January 10, 2017 03:00PM |
Admin Registered: 13 years ago Posts: 18,550 |
Quote
8. Flashing default u-boot envs image uboot.2016.05-tld-1.environment.img in step 8 (section B).
As described in step 1, u-boot envs must be defined in etc/fw_env.config as
# MTD device name Device offset Env. size Flash sector size Number of sectors
/dev/mtd0 0xc0000 0x20000 0x20000
A special section (B. Flashing default u-boot envs image) about flashing default u-boot envs is included at the end of this installation procedure. Please follow the instruction in this section B to perform this step before continuing with step 9.
Re: Help with NSA310 kernel installation January 11, 2017 04:04AM |
Registered: 7 years ago Posts: 8 |