Re: Pogoplug E02 Debian Linux Installation Guide October 19, 2017 02:15PM |
Registered: 8 years ago Posts: 88 |
# # /etc/default/rcS # # Default settings for the scripts in /etc/rcS.d/ # # For information about these variables see the rcS(5) manual page. # # This file belongs to the "initscripts" package. # delete files in /tmp during boot older than x days. # '0' means always, -1 or 'infinite' disables the feature #TMPTIME=0 # spawn sulogin during boot, continue normal boot if not used in 30 seconds #SULOGIN=no # do not allow users to log in until the boot has completed #DELAYLOGIN=no # be more verbose during the boot process #VERBOSE=no # automatically repair filesystems with inconsistencies during boot #FSCKFIX=no
TMPTIME=0 SULOGIN=no DELAYLOGIN=no UTC=yes VERBOSE=no FSCKFIX=yes RAMRUN=no RAMLOCK=no
Re: Pogoplug E02 Debian Linux Installation Guide October 19, 2017 02:40PM |
Registered: 7 years ago Posts: 310 |
Re: Pogoplug E02 Debian Linux Installation Guide October 19, 2017 07:12PM |
Registered: 8 years ago Posts: 88 |
Re: Pogoplug E02 Debian Linux Installation Guide October 19, 2017 08:30PM |
Admin Registered: 13 years ago Posts: 18,574 |
Re: Pogoplug E02 Debian Linux Installation Guide October 19, 2017 09:21PM |
Registered: 7 years ago Posts: 310 |
Re: Pogoplug E02 Debian Linux Installation Guide October 20, 2017 01:55AM |
Registered: 8 years ago Posts: 88 |
Re: Pogoplug E02 Debian Linux Installation Guide October 20, 2017 02:24AM |
Registered: 7 years ago Posts: 310 |
Re: Pogoplug E02 Debian Linux Installation Guide October 20, 2017 03:16AM |
Registered: 8 years ago Posts: 88 |
dev: size erasesize name mtd0: 00100000 00020000 "u-boot" mtd1: 00400000 00020000 "uImage" mtd2: 02000000 00020000 "rootfs" mtd3: 0db00000 00020000 "data" 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 important 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"
# Configuration file for fw_(printenv/saveenv) utility. # Up to two entries are valid, in this case the redundant # environment sector is assumed present. # Notice, that the "Number of sectors" is ignored on NOR. # MTD device name Device offset Env. size Flash sector size Number of sectors /dev/mtd0 0xc0000 0x20000 0x20000
Re: Pogoplug E02 Debian Linux Installation Guide October 20, 2017 03:36AM |
Registered: 7 years ago Posts: 310 |
> dev: size erasesize name > mtd0: 00100000 00020000 "u-boot" > mtd1: 00400000 00020000 "uImage" > mtd2: 02000000 00020000 "rootfs" > mtd3: 0db00000 00020000 "data" > > 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 important 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" > >>
> # Configuration file for fw_(printenv/saveenv) > utility. > # Up to two entries are valid, in this case the > redundant > # environment sector is assumed present. > # Notice, that the "Number of sectors" is ignored > on NOR. > > # MTD device name Device offset Env. size > Flash sector size Number of sectors > /dev/mtd0 0xc0000 0x20000 > 0x20000 >>
Re: Pogoplug E02 Debian Linux Installation Guide October 20, 2017 03:39AM |
Registered: 8 years ago Posts: 88 |
debian:/tmp# debian:/tmp# debian:/tmp# cat /etc/fw_env.config # Configuration file for fw_(printenv/saveenv) utility. # Up to two entries are valid, in this case the redundant # environment sector is assumed present. # Notice, that the "Number of sectors" is ignored on NOR. # MTD device name Device offset Env. size Flash sector size Number of sectors /dev/mtd0 0xc0000 0x20000 0x20000 debian:/tmp# debian:/tmp# debian:/tmp#
Re: Pogoplug E02 Debian Linux Installation Guide October 20, 2017 03:40AM |
Admin Registered: 13 years ago Posts: 18,574 |
# Configuration file for fw_(printenv/saveenv) utility. # Up to two entries are valid, in this case the redundant # environment sector is assumed present. # Notice, that the "Number of sectors" is ignored on NOR. # MTD device name Device offset Env. size Flash sector size Number of sectors /dev/mtd0 0xc0000 0x20000 0x20000
> mtd0: 00100000 00020000 "u-boot" > mtd1: 00400000 00020000 "uImage" > mtd2: 02000000 00020000 "rootfs" > mtd3: 0db00000 00020000 "data"
Re: Pogoplug E02 Debian Linux Installation Guide October 20, 2017 03:42AM |
Registered: 8 years ago Posts: 88 |
Re: Pogoplug E02 Debian Linux Installation Guide October 20, 2017 03:45AM |
Admin Registered: 13 years ago Posts: 18,574 |
Re: Pogoplug E02 Debian Linux Installation Guide October 20, 2017 03:47AM |
Admin Registered: 13 years ago Posts: 18,574 |
Re: Pogoplug E02 Debian Linux Installation Guide October 20, 2017 03:49AM |
Registered: 8 years ago Posts: 88 |
Re: Pogoplug E02 Debian Linux Installation Guide October 20, 2017 03:51AM |
Admin Registered: 13 years ago Posts: 18,574 |
> mtd0: 00100000 00020000 "u-boot"
[ 7.748831] Creating 4 MTD partitions on "orion_nand": [ 7.754003] 0x000000000000-0x000000100000 : "u-boot" -- 1M [ 7.760055] 0x000000100000-0x000000500000 : "uImage" -- 4M [ 7.766106] 0x000000500000-0x000002500000 : "rootfs" [ 7.772339] 0x000002500000-0x000010000000 : "data"
Re: Pogoplug E02 Debian Linux Installation Guide October 20, 2017 04:44AM |
Registered: 8 years ago Posts: 88 |
Find your box DTB file in the rootfs /boot/dts directory and adjust the env to it.
In the special case when you are booting with a non-FDT kernel, or if you have appended the DTB to uImage. Remove the DTB file env. If not sure please post question before continuing.Surprise, surprise, I'm not sure]
Re: Pogoplug E02 Debian Linux Installation Guide October 20, 2017 05:04AM |
Registered: 8 years ago Posts: 88 |
debian:/tmp# debian:/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; run bootcmd_exec bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi bootdelay=10 bootdev=usb device=0:1 devices=usb ide mmc disks=0 1 2 3 ethact=egiga0 if_netconsole=ping $serverip ipaddr=192.168.0.231 led_error=orange blinking led_exit=green off led_init=green blinking dtb_file=/boot/dts/kirkwood-pogo_e02.dtb load_dtb_addr=0x1c00000 load_initrd_addr=0x1100000 load_uimage_addr=0x800000 load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage mainlineLinux=yes 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 scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start"; setenv scan_ide "ide reset"; setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done serverip=192.168.0.220 set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params 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_addr=0x810000 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; done; 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 uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi usb_ready_retry=15 arcNumber=3542 machid=dd6 ethaddr=00:25:31:04:80:8C debian:/tmp# debian:/tmp#
Re: Pogoplug E02 Debian Linux Installation Guide October 20, 2017 05:07AM |
Registered: 7 years ago Posts: 310 |
> Find your box DTB file in the rootfs /boot/dts > directory and adjust the env to it. >>
> In the special case when you are booting with a > non-FDT kernel, or if you have appended the DTB to > uImage. Remove the DTB file env. If not sure > please post question before continuing. >> Surprise, surprise, I'm not sure]
Re: Pogoplug E02 Debian Linux Installation Guide October 20, 2017 05:14AM |
Registered: 7 years ago Posts: 310 |
> debian:/tmp# > debian:/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; run bootcmd_exec > bootcmd_uenv=run uenv_load; if test $uenv_loaded > -eq 1; then run uenv_import; fi > bootdelay=10 > bootdev=usb > device=0:1 > devices=usb ide mmc > disks=0 1 2 3 > ethact=egiga0 > if_netconsole=ping $serverip > ipaddr=192.168.0.231 > led_error=orange blinking > led_exit=green off > led_init=green blinking > dtb_file=/boot/dts/kirkwood-pogo_e02.dtb > load_dtb_addr=0x1c00000 > load_initrd_addr=0x1100000 > load_uimage_addr=0x800000 > load_dtb=echo loading DTB $dtb_file ...; load > $bootdev $device $load_dtb_addr $dtb_file > load_initrd=echo loading uInitrd ...; load > $bootdev $device $load_initrd_addr /boot/uInitrd > load_uimage=echo loading uImage ...; load $bootdev > $device $load_uimage_addr /boot/uImage > mainlineLinux=yes > 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 > scan_disk=echo running scan_disk ...; scan_done=0; > setenv scan_usb "usb start"; setenv scan_ide "ide > reset"; setenv scan_mmc "mmc rescan"; for dev in > $devices; do if test $scan_done -eq 0; then echo > Scan device $dev; run scan_$dev; for disknum in > $disks; do if test $scan_done -eq 0; then echo > device $dev $disknum:1; if load $dev $disknum:1 > $load_uimage_addr /boot/uImage 1; then > scan_done=1; echo Found bootable drive on $dev > $disknum; setenv device $disknum:1; setenv bootdev > $dev; fi; fi; done; fi; done > serverip=192.168.0.220 > set_bootargs=setenv bootargs console=ttyS0,115200 > root=LABEL=rootfs rootdelay=10 $mtdparts > $custom_params > 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_addr=0x810000 > 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; done; > 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 > uenv_read=echo loading envs from $devtype $disknum > ...; if load $devtype $disknum:1 $uenv_addr > /boot/uEnv.txt; then setenv uenv_loaded 1; fi > usb_ready_retry=15 > arcNumber=3542 > machid=dd6 > ethaddr=00:25:31:04:80:8C > debian:/tmp# > debian:/tmp# > >
Re: Pogoplug E02 Debian Linux Installation Guide October 20, 2017 05:19AM |
Registered: 8 years ago Posts: 88 |
Re: Pogoplug E02 Debian Linux Installation Guide October 20, 2017 05:23AM |
Registered: 7 years ago Posts: 310 |
Re: Pogoplug E02 Debian Linux Installation Guide October 20, 2017 05:27AM |
Registered: 8 years ago Posts: 88 |
Re: Pogoplug E02 Debian Linux Installation Guide October 20, 2017 05:29AM |
Registered: 8 years ago Posts: 88 |
Re: Pogoplug E02 Debian Linux Installation Guide October 20, 2017 05:34AM |
Registered: 7 years ago Posts: 310 |
Re: Pogoplug E02 Debian Linux Installation Guide October 20, 2017 05:39AM |
Registered: 7 years ago Posts: 310 |
Re: Pogoplug E02 Debian Linux Installation Guide October 20, 2017 03:49PM |
Admin Registered: 13 years ago Posts: 18,574 |
Re: Pogoplug E02 Debian Linux Installation Guide October 20, 2017 04:12PM |
Registered: 7 years ago Posts: 310 |
Re: Pogoplug E02 Debian Linux Installation Guide October 20, 2017 04:21PM |
Admin Registered: 13 years ago Posts: 18,574 |
Re: Pogoplug E02 Debian Linux Installation Guide October 20, 2017 04:43PM |
Registered: 8 years ago Posts: 88 |
C. Add uEnv.txt to /boot directory Create a text file in /boot directory with the content in the format that u-boot envs are listed. Examples: These 4 examples are only to demonstrate the syntax in uEnv.txt (they might or might not apply to your current settings): - Load appropriate DTB file for the kernel to run GoFlex Net box. - Use only USB drives for kernel and rootfs during booting - Use SD card, USB and SATA for booting. The kernel and rootfs search order is as they are appeared on the list: mmc, usb, ide. - Define that there are 8 storage devices (i.e. disk partitions). cat /boot/uEnv.txt dtb_file=/boot/dts/kirkwood-goflexnet.dtb devices=usb devices=mmc usb ide disks=0 1 2 3 4 5 6 7
dtb_file=/boot/dts/kirkwood-pogo_e02.dtb devices=usb devices=usb disks=0 1 2 3 4 5 6 7
10. Set up netconsole. It's important to set up neconsole if you don't already have serial console connected. If you've flashed the default environments in step 8 then activate netconsole with the following envs: fw_setenv preboot_nc 'setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi' fw_setenv preboot 'run preboot_nc' fw_setenv ipaddr '192.168.0.xxx' fw_setenv serverip '192.168.0.yyy' where the 192.168.0.xxx is this plug IP address, and 192.168.0.yyy is the IP address of the netconsole server where it will monitor the output from the this plug (adjust them to the real values in your own local network settings). 11. Reboot. Upon reboot, in either serial console or netconsole, uBoot banner should show: U-Boot 2016.05-tld-1 (Jun 12 2016 ….) <your box name>