|
Replace ArchLinuxARM with Debian on GoFlexHome July 13, 2018 06:35PM |
Registered: 5 years ago Posts: 21 |
|
Re: Replace ArchLinuxARM with Debian on GoFlexHome July 13, 2018 07:50PM |
Admin Registered: 13 years ago Posts: 18,580 |
|
Re: Replace ArchLinuxARM with Debian on GoFlexHome July 14, 2018 06:13AM |
Registered: 5 years ago Posts: 21 |
|
Re: Replace ArchLinuxARM with Debian on GoFlexHome July 14, 2018 04:33PM |
Admin Registered: 13 years ago Posts: 18,580 |
cat /proc/mtd fw_printenv
|
Re: Replace ArchLinuxARM with Debian on GoFlexHome July 14, 2018 05:08PM |
Registered: 5 years ago Posts: 21 |
dev: size erasesize name mtd0: 00100000 00020000 "u-boot" mtd1: 0ff00000 00020000 "rootfs"
baudrate=115200
bootcmd=ide reset; usb start; setenv letter 9;for type in ide usb; do for disk in 0; do if ${type} part ${disk};then setexpr letter $letter + 1;run load;fi;done;done;
bootdelay=3
bootm=echo Booting from ${disk} ...; run setargs; bootm ${loadaddr};
bootz=echo Booting from ${disk} ...; run setargs; bootz ${loadaddr} - ${fdt_addr};
console=ttyS0
ethact=egiga0
fdt_addr=0x800000
fdt_file=/boot/dtbs/kirkwood-goflexnet.dtb
importbootenv=echo Importing environment (uEnv.txt)...; env import -t $loadaddr $filesize
load=echo Attempting to boot from ${type} ${disk}:1...;if run loadbootenv; then run importbootenv;fi;echo Checking if uenvcmd is set ...;if test -n $uenvcmd; then echo Running uenvcmd ...;run uenvcmd;fi;echo Running default loadzimage ...;if run loadzimage; then run loadfdt;run bootz;fi;echo Running default loaduimage ...;if run loaduimage; then run bootm;fi;
loadaddr=0x810000
loadbootenv=load ${type} ${disk}:1 ${loadaddr} /boot/uEnv.txt
loadfdt=load ${type} ${disk}:1 ${fdt_addr} ${fdt_file}
loaduimage=load ${type} ${disk}:1 ${loadaddr} ${uimage}
loadzimage=load ${type} ${disk}:1 ${loadaddr} ${zimage}
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),-(rootfs)
setargs=setenv bootargs console=${console},${baudrate} ${optargs} root=/dev/sd${letter}1 rw rootwait ${mtdparts}
uimage=/boot/uImage
zimage=/boot/zImage
ethaddr=00:10:75:29:8A:30
serverip=192.168.2.6
ipaddr=192.168.2.40
if_netconsole=ping $serverip
preboot=run if_netconsole start_netconsole
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
|
Re: Replace ArchLinuxARM with Debian on GoFlexHome July 14, 2018 05:40PM |
Admin Registered: 13 years ago Posts: 18,580 |
|
Re: Replace ArchLinuxARM with Debian on GoFlexHome July 14, 2018 05:56PM |
Admin Registered: 13 years ago Posts: 18,580 |
fdt_file=/boot/dts/kirkwood-goflehome.dtb
setargs=setenv bootargs console=${console},${baudrate} ${optargs} root=LABEL=rootfs rw rootwait ${mtdparts}
bootm=echo Booting from ${disk} ...; run setargs; load ${type} ${disk}:1 0x1100000 /boot/uInitrd; load ${type} ${disk}:1 ${fdt_addr} ${fdt_file}; bootm ${loadaddr} 0x1100000 ${fdt_addr}
ping debian.local
|
Re: Replace ArchLinuxARM with Debian on GoFlexHome July 14, 2018 06:34PM |
Registered: 5 years ago Posts: 21 |
|
Re: Replace ArchLinuxARM with Debian on GoFlexHome July 14, 2018 07:48PM |
Admin Registered: 13 years ago Posts: 18,580 |
Quote
1. On a separate disc in the first ext3 partition on the disc, I have created the rootfs using the tarball Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2 and labelled it as rootfs.
|
Re: Replace ArchLinuxARM with Debian on GoFlexHome July 14, 2018 09:14PM |
Registered: 5 years ago Posts: 21 |
|
Re: Replace ArchLinuxARM with Debian on GoFlexHome July 14, 2018 11:08PM |
Admin Registered: 13 years ago Posts: 18,580 |
/dev/sdc1 * 2048 41945087 41943040 20G 83 Linux /dev/sdc2 41945088 42993663 1048576 512M 82 Linux swap / Solaris
root@debian-vb:/mnt/sdc1/boot# cat uEnv.txt fdt_file=/boot/dts/kirkwood-goflehome.dtb setargs=setenv bootargs console=, root=LABEL=rootfs rw rootwait bootm=echo Booting from ...; run setargs; load :1 0x1100000 /boot/uInitrd; load :1 ; bootm 0x1100000
fdt_file=/boot/dts/kirkwood-goflehome.dtb
setargs=setenv bootargs console=${console},${baudrate} ${optargs} root=LABEL=rootfs rw rootwait ${mtdparts}
bootm=echo Booting from ${disk} ...; run setargs; load ${type} ${disk}:1 0x1100000 /boot/uInitrd; load ${type} ${disk}:1 ${fdt_addr} ${fdt_file}; bootm ${loadaddr} 0x1100000 ${fdt_addr}
bootm=echo Booting from ...; run setargs; load :1 0x1100000 /boot/uInitrd; load :1 ; bootm 0x1100000
fdt_file=/boot/dts/kirkwood-goflehome.dtb
setargs=setenv bootargs console=${console},${baudrate} ${optargs} root=LABEL=rootfs rw rootwait ${mtdparts}
bootm=echo Booting from ${disk} ...; run setargs; load ${type} ${disk}:1 0x1100000 /boot/uInitrd; load ${type} ${disk}:1 ${fdt_addr} ${fdt_file}; bootm ${loadaddr} 0x1100000 ${fdt_addr}
|
Re: Replace ArchLinuxARM with Debian on GoFlexHome July 15, 2018 06:08AM |
Registered: 5 years ago Posts: 21 |
pacman -S uboot-goflexhome
|
Re: Replace ArchLinuxARM with Debian on GoFlexHome July 15, 2018 05:23PM |
Admin Registered: 13 years ago Posts: 18,580 |
|
Re: Replace ArchLinuxARM with Debian on GoFlexHome July 16, 2018 09:55AM |
Registered: 5 years ago Posts: 21 |
baudrate=115200 console=ttyS0 ethact=egiga0 ethaddr=00:10:75:29:8A:30
|
Re: Replace ArchLinuxARM with Debian on GoFlexHome July 16, 2018 08:06PM |
Admin Registered: 13 years ago Posts: 18,580 |
|
Re: Replace ArchLinuxARM with Debian on GoFlexHome July 17, 2018 03:21AM |
Registered: 5 years ago Posts: 21 |
|
Re: Replace ArchLinuxARM with Debian on GoFlexHome August 07, 2018 10:07AM |
Registered: 5 years ago Posts: 21 |
U-Boot 2016.09.01-1 (Oct 10 2016 - 23:11:39 -0600) Arch Linux ARM
Seagate GoFlex Home
SoC: Kirkwood 88F6281_A1
DRAM: 128 MiB
WARNING: Caches not enabled
NAND: 256 MiB
In: serial
Out: serial
Err: serial
Net: egiga0
88E1116 Initialized on egiga0
IDE: ide_preinit failed
No link on egiga0
ping failed; host 10.10.10.5 is not alive
Hit any key to stop autoboot: 0
Reset IDE: ide_preinit failed
starting USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found
Partition Map for USB device 0 -- Partition Type: DOS
Part Start Sector Num Sectors UUID Type
1 2048 786432 000008e1-01 83
setexpr - set environment variable as the result of eval expression
Usage:
setexpr [.b, .w, .l] name [*]value1 <op> [*]value2
- set environment variable 'name' to the result of the evaluated
expression specified by <op>. <op> can be &, |, ^, +, -, *, /, %
size argument is only meaningful if value1 and/or value2 are
memory addresses (*)
setexpr[.b, .w, .l] name [*]value
- load a value into a variable
setexpr name gsub r s [t]
- For each substring matching the regular expression <r> in the
string <t>, substitute the string <s>. The result is
assigned to <name>. If <t> is not supplied, use the old
value of <name>
setexpr name sub r s [t]
- Just like gsub(), but replace only the first matching substring
Attempting to boot from usb 0:1...
load - load binary file from a filesystem
Usage:
load <interface> [<dev[:part]> [<addr> [<filename> [bytes [pos]]]]]
- Load binary file 'filename' from partition 'part' on device
type 'interface' instance 'dev' to address 'addr' in memory.
'bytes' gives the size to load in bytes.
If 'bytes' is 0 or omitted, the file is read until the end.
'pos' gives the file byte position to start reading from.
If 'pos' is 0 or omitted, the file is read from the start.
Checking if uenvcmd is set ...
Running default loadzimage ...
** No boot file defined **
Running default loaduimage ...
** No boot file defined **
Partition Map for USB device 0 -- Partition Type: DOS
Part Start Sector Num Sectors UUID Type
1 2048 786432 000008e1-01 83
setexpr - set environment variable as the result of eval expression
Usage:
setexpr [.b, .w, .l] name [*]value1 <op> [*]value2
- set environment variable 'name' to the result of the evaluated
expression specified by <op>. <op> can be &, |, ^, +, -, *, /, %
size argument is only meaningful if value1 and/or value2 are
memory addresses (*)
setexpr[.b, .w, .l] name [*]value
- load a value into a variable
setexpr name gsub r s [t]
- For each substring matching the regular expression <r> in the
string <t>, substitute the string <s>. The result is
assigned to <name>. If <t> is not supplied, use the old
value of <name>
setexpr name sub r s [t]
- Just like gsub(), but replace only the first matching substring
Attempting to boot from usb 0:1...
load - load binary file from a filesystem
Usage:
load <interface> [<dev[:part]> [<addr> [<filename> [bytes [pos]]]]]
- Load binary file 'filename' from partition 'part' on device
type 'interface' instance 'dev' to address 'addr' in memory.
'bytes' gives the size to load in bytes.
If 'bytes' is 0 or omitted, the file is read until the end.
'pos' gives the file byte position to start reading from.
If 'pos' is 0 or omitted, the file is read from the start.
Checking if uenvcmd is set ...
Running default loadzimage ...
** No boot file defined **
Running default loaduimage ...
** No boot file defined **
GoFlexHome> env print
baudrate=115200
bootcmd=ide reset; usb start; setenv letter 9;for type in ide usb; do for disk in 0; do if usb part 0;then setexpr letter + 1;run load;fi;done;done;
bootdelay=3
bootdir=/boot
bootfilem=uImage
bootfilez=zImage
bootm=echo Booting from 0 ...; run setargs; bootm ;
bootubi=echo Trying to boot from NAND ...;if run mountubi; then ubifsload ${loadaddr} /boot/zImage;ubifsload ${fdtaddr} /boot/dtbs/${fdtfile};ubifsumount; setenv bootargs console=${console} ubi.mtd=1 root=ubi0:rootfs ro rootfstype=ubifs rootwait ${mtdparts};bootz ${loadaddr} - ${fdtaddr};fi
bootz=echo Booting from 0 ...; run setargs; bootz - ;
console=ttyS0
ethact=egiga0
ethaddr=00:10:75:29:8A:30
fdt_addr=0x800000
fdt_file=/boot/dtbs/kirkwood-goflexnet.dtb
fdtaddr=0x800000
fdtdir=/boot/dtbs
fdtfile=kirkwood-goflexhome.dtb
importbootenv=echo Importing environment (uEnv.txt)...; env import -t
ipaddr=10.10.10.3
letter=9
load=echo Attempting to boot from usb 0:1...;if run loadbootenv; then run importbootenv;fi;echo Checking if uenvcmd is set ...;if test -n ; then echo Running uenvcmd ...;run uenvcmd;fi;echo Running default loadzimage ...;if run loadzimage; then run loadfdt;run bootz;fi;echo Running default loaduimage ...;if run loaduimage; then run bootm;fi;
loadaddr=0x810000
loadbootenv=load usb 0:1 /boot/uEnv.txt
loadfdt=load usb 0:1
loadimage=load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/${bootfilez} || load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/${bootfilem}
loadrd=load ${devtype} ${bootpart} ${rdaddr} ${bootdir}/${rdfile}
loaduimage=load usb 0:1
loadzimage=load usb 0:1
mainargs=setenv bootargs console=${console} ${mtdparts} root=${root} rw rootwait ${optargs} ${ncargs}
mountubi=ubi part rootfs; ubifsmount ubi0:rootfs
mtdids=nand0 orion_nand
mtdparts=mtdparts orion_nand:1M(u-boot),-(rootfs)
ncip=10.10.10.5
ncipk=10.10.10.4
netconsole=on
preboot=if env exists netconsole && test ${netconsole} = on; then if ping ${ncip}; then setenv stdin nc; setenv stdout nc; setenv stderr nc; version; if env exists ncargsusr; then echo ncargs has been defined by user; setenv ncargs ${ncargsusr}; else setenv ncargs ignore_loglevel netconsole=6665@${ipaddr}/eth0,6666@${ncipk}/; fi; fi; else echo Netconsole has been turned off.; echo To turn it on, set netconsole variable to on.; setenv stdin; setenv stdout; setenv stderr; setenv ncargs; fi
rdaddr=0x1100000
rdfile=initramfs-linux.img
setargs=setenv bootargs console , root /dev/sd1 rw rootwait
startboot=usb start; ide reset; for devtype in usb ide; do setenv devnum 0; while ${devtype} dev ${devnum}; do echo ${devtype} found on device ${devnum}; setenv bootpart ${devnum}:1; echo Checking for: ${bootdir}/uEnv.txt ...; if test -e ${devtype} ${bootpart} ${bootdir}/uEnv.txt; then load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/uEnv.txt; env import -t ${loadaddr} ${filesize}; echo Loaded environment from ${bootdir}/uEnv.txt; echo Checking if uenvcmd is set ...; if test -n ${uenvcmd}; then echo Running uenvcmd ...; run uenvcmd; fi; fi; if run loadimage; then if env exists root; then echo root has been defined by user; else part uuid ${devtype} ${bootpart} uuid; setenv root PARTUUID=${uuid}; fi; run mainargs; if run loadfdt; then if run loadrd; then bootz ${loadaddr} ${rdaddr}:${filesize} ${fdtaddr}; else bootz ${loadaddr} - ${fdtaddr}; fi; else if run loadrd; then echo Booting uImage with initrd; bootm ${loadaddr} ${rdaddr}:${filesize}; else bootm ${loadaddr}; fi; fi; else echo No kernel found; fi; setexpr devnum ${devnum} + 1; done; done;
uimage=/boot/uImage
zimage=/boot/zImage
Environment size: 3665/131068 bytes
GoFlexHome>
|
Re: Replace ArchLinuxARM with Debian on GoFlexHome August 07, 2018 11:06PM |
Admin Registered: 13 years ago Posts: 18,580 |
|
Re: Replace ArchLinuxARM with Debian on GoFlexHome August 08, 2018 05:55AM |
Admin Registered: 13 years ago Posts: 18,580 |
kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.2017.07-tld-1.goflexhome.mtd0.kwb -p
|
Re: Replace ArchLinuxARM with Debian on GoFlexHome August 08, 2018 06:48AM |
Registered: 5 years ago Posts: 21 |
./kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.2017.07-tld-1.goflexhome.mtd0.kwb -p Sending boot message. Please reboot the target.../
root@debian:~# cat /proc/mtd dev: size erasesize name mtd0: 00100000 00020000 "u-boot" mtd1: 00600000 00020000 "uImage" mtd2: 0d800000 00020000 "root"
U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:21:31 -0700)
Seagate GoFlex Home
gcc (Debian 6.3.0-18) 6.3.0 20170516
GNU ld (GNU Binutils for Debian) 2.28
Hit any key to stop autoboot: 0
starting USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Reset IDE: Bus 0: OK Bus 1: not available
Device 0: Model: ST1000DM000-9TS15E Firm: CC92 Ser#: 5YA0FYGY
Type: Hard Disk
Supports 48-bit addressing
Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)
Unknown command 'mmc' - try 'help'
## Unknown partition table type 0
## Unknown partition table type 0
## Unknown partition table type 0
## Unknown partition table type 0
## Unknown partition table type 0
## Unknown partition table type 0
## Unknown partition table type 0
loading envs from usb 0 ...
** Bad device usb 0 **
Partition Map for IDE device 0 -- Partition Type: DOS
Part Start Sector Num Sectors UUID Type
1 2048 41943040 00000000-01 83
Unknown command 'mmc' - try 'help'
running scan_disk ...
Scan device usb
device usb 0:1
** Bad device usb 0 **
device usb 1:1
** Bad device usb 1 **
device usb 2:1
** Bad device usb 2 **
device usb 3:1
** Bad device usb 3 **
Scan device ide
Reset IDE: Bus 0: OK Bus 1: not available
Device 0: Model: ST1000DM000-9TS15E Firm: CC92 Ser#: 5YA0FYGY
Type: Hard Disk
Supports 48-bit addressing
Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)
device ide 0:1
1 bytes read in 399 ms (0 Bytes/s)
Found bootable drive on ide 0
loading uImage ...
3821592 bytes read in 772 ms (4.7 MiB/s)
loading uInitrd ...
7245696 bytes read in 1431 ms (4.8 MiB/s)
loading DTB /boot/dts/kirkwood-goflexhome.dtb ...
10603 bytes read in 1452 ms (6.8 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
Image Name: Linux-4.12.1-kirkwood-tld-1
Created: 2017-07-20 8:11:24 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3821528 Bytes = 3.6 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
Image Name: initramfs-4.12.1-kirkwood-tld-1
Created: 2017-07-24 0:18:23 UTC
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 7245632 Bytes = 6.9 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
Booting using the fdt blob at 0x1c00000
Starting kernel ...
|
Re: Replace ArchLinuxARM with Debian on GoFlexHome August 08, 2018 07:43AM |
Registered: 5 years ago Posts: 21 |
root@debian:~# cat /boot/uEnv.txt custom_params=init=/bin/systemd
root@debian:~# cat /proc/cmdline console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts orion_nand:1M(u-boot),-(rootfs)
|
Re: Replace ArchLinuxARM with Debian on GoFlexHome August 08, 2018 12:19PM |
Admin Registered: 13 years ago Posts: 18,580 |
Quote
Seems to be working perfectly now though. I assume I can now create additional partitions on the SATA drive for data etc?
|
Re: Replace ArchLinuxARM with Debian on GoFlexHome August 09, 2018 08:11AM |
Registered: 5 years ago Posts: 21 |
custom_params=init=/bin/systemd ipv6.disable=1to enable systemd and disable IP v6 but it ignores anything I enter in that file. What am I doing wrong?
|
Re: Replace ArchLinuxARM with Debian on GoFlexHome August 09, 2018 08:23AM |
Admin Registered: 13 years ago Posts: 18,580 |
custom_params=init=/bin/systemd ipv6.disable=1
|
Re: Replace ArchLinuxARM with Debian on GoFlexHome August 09, 2018 08:37AM |
Registered: 5 years ago Posts: 21 |
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
~# cat /proc/cmdline console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts orion_nand:1M(u-boot),-(rootfs)
|
Re: Replace ArchLinuxARM with Debian on GoFlexHome August 09, 2018 08:46AM |
Admin Registered: 13 years ago Posts: 18,580 |
printenv boot
|
Re: Replace ArchLinuxARM with Debian on GoFlexHome August 09, 2018 09:39AM |
Registered: 5 years ago Posts: 21 |
U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:21:31 -0700)
Seagate GoFlex Home
gcc (Debian 6.3.0-18) 6.3.0 20170516
GNU ld (GNU Binutils for Debian) 2.28
Hit any key to stop autoboot: 5 4
printenv
boot
^C
[1]+ Stopped nc -l -u -p 6666
root@raspberrypi:/var/log # fg
nc -l -u -p 6666
0
GoFlexHome>
GoFlexHome>
GoFlexHome>
GoFlexHome> printenv
arcNumber=3338
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
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_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi; sleep 3
bootdelay=10
bootdev=usb
device=0:1
devices=usb ide mmc
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-goflexhome.dtb
ethact=egiga0
ethaddr=00:10:75:29:8A:30
if_netconsole=ping $serverip
ipaddr=192.168.1.40
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_uimage_addr=0x800000
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts orion_nand:1M(u-boot),-(rootfs)
nc_ready=1
ncip=192.168.1.2
partition=nand0,2
preboot=run preboot_nc
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
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.1.2
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=nc
stdin=nc
stdout=nc
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=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /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_ready_retry=15
Environment size: 3012/131068 bytes
GoFlexHome> boot
starting USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Reset IDE: Bus 0: OK Bus 1: not available
Device 0: Model: ST1000DM000-9TS15E Firm: CC92 Ser#: 5YA0FYGY
Type: Hard Disk
Supports 48-bit addressing
Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)
Unknown command 'mmc' - try 'help'
## Unknown partition table type 0
## Unknown partition table type 0
## Unknown partition table type 0
## Unknown partition table type 0
## Unknown partition table type 0
## Unknown partition table type 0
## Unknown partition table type 0
loading envs from usb 0 ...
** Bad device usb 0 **
Partition Map for IDE device 0 -- Partition Type: DOS
Part Start Sector Num Sectors UUID Type
1 2048 41943040 00000000-01 83
2 41945088 1911580080 00000000-02 83
Unknown command 'mmc' - try 'help'
running scan_disk ...
Scan device usb
device usb 0:1
** Bad device usb 0 **
device usb 1:1
** Bad device usb 1 **
device usb 2:1
** Bad device usb 2 **
device usb 3:1
** Bad device usb 3 **
Scan device ide
Reset IDE: Bus 0: OK Bus 1: not available
Device 0: Model: ST1000DM000-9TS15E Firm: CC92 Ser#: 5YA0FYGY
Type: Hard Disk
Supports 48-bit addressing
Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)
device ide 0:1
1 bytes read in 399 ms (0 Bytes/s)
Found bootable drive on ide 0
loading uImage ...
3821592 bytes read in 770 ms (4.7 MiB/s)
loading uInitrd ...
7706670 bytes read in 1499 ms (4.9 MiB/s)
loading DTB /boot/dts/kirkwood-goflexhome.dtb ...
10603 bytes read in 1451 ms (6.8 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
Image Name: Linux-4.12.1-kirkwood-tld-1
Created: 2017-07-20 8:11:24 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3821528 Bytes = 3.6 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
Image Name: initramfs-4.12.1-kirkwood-tld-1
Created: 2018-08-09 7:38:25 UTC
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 7706606 Bytes = 7.3 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
Booting using the fdt blob at 0x1c00000
Starting kernel ...
fw_setenv custom_params 'init=/bin/systemd ipv6.disable=1'but all that proves is that custom_params is not being set by /boot/uEnv.txt.
|
Re: Replace ArchLinuxARM with Debian on GoFlexHome August 09, 2018 12:38PM |
Admin Registered: 13 years ago Posts: 18,580 |
setenv devices 'ide usb' setenv bootdev ide boot
|
Re: Replace ArchLinuxARM with Debian on GoFlexHome August 09, 2018 05:09PM |
Registered: 5 years ago Posts: 21 |
U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:21:31 -0700)
Seagate GoFlex Home
gcc (Debian 6.3.0-18) 6.3.0 20170516
GNU ld (GNU Binutils for Debian) 2.28
Hit any key to stop autoboot: 0
GoFlexHome> setenv devices 'ide usb'
GoFlexHome> setenv bootdev ide
GoFlexHome> boot
Reset IDE: Bus 0: OK Bus 1: not available
Device 0: Model: ST1000DM000-9TS15E Firm: CC92 Ser#: 5YA0FYGY
Type: Hard Disk
Supports 48-bit addressing
Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)
starting USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Partition Map for IDE device 0 -- Partition Type: DOS
Part Start Sector Num Sectors UUID Type
1 2048 41943040 00000000-01 83
2 41945088 1911580080 00000000-02 83
## Unknown partition table type 0
## Unknown partition table type 0
## Unknown partition table type 0
## Unknown partition table type 0
## Unknown partition table type 0
## Unknown partition table type 0
## Unknown partition table type 0
loading envs from usb 0 ...
** Bad device usb 0 **
running scan_disk ...
Scan device ide
Reset IDE: Bus 0: OK Bus 1: not available
Device 0: Model: ST1000DM000-9TS15E Firm: CC92 Ser#: 5YA0FYGY
Type: Hard Disk
Supports 48-bit addressing
Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)
device ide 0:1
1 bytes read in 407 ms (0 Bytes/s)
Found bootable drive on ide 0
loading uImage ...
3821592 bytes read in 771 ms (4.7 MiB/s)
loading uInitrd ...
7706670 bytes read in 1498 ms (4.9 MiB/s)
loading DTB /boot/dts/kirkwood-goflexhome.dtb ...
10603 bytes read in 1451 ms (6.8 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
Image Name: Linux-4.12.1-kirkwood-tld-1
Created: 2017-07-20 8:11:24 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3821528 Bytes = 3.6 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
Image Name: initramfs-4.12.1-kirkwood-tld-1
Created: 2018-08-09 7:38:25 UTC
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 7706606 Bytes = 7.3 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
Booting using the fdt blob at 0x1c00000
Starting kernel ...
# ls -l /boot total 37112 drwxr-xr-x 3 root root 4096 Aug 9 08:37 . drwxr-xr-x 21 root root 4096 Aug 8 09:36 .. -rw-r--r-- 1 root root 153501 Jul 16 2017 config-4.12.1-kirkwood-tld-1 drwxr-xr-x 2 root root 4096 Jul 15 2017 dts -rw-r--r-- 1 root root 7706606 Aug 9 08:37 initrd.img-4.12.1-kirkwood-tld-1 -rw-r--r-- 1 root root 8435004 Jul 16 2017 linux-headers-4.12.1-kirkwood-tld-1_1.0_armel.deb -rw------- 1 root root 2504031 Jul 16 2017 System.map-4.12.1-kirkwood-tld-1 -rw-r--r-- 1 root root 47 Aug 9 15:14 uEnv.txt -rw-r--r-- 1 root root 3821592 Jul 20 2017 uImage -rw-r--r-- 1 root root 7706670 Aug 9 08:38 uInitrd -rw------- 1 root root 3821528 Jul 16 2017 vmlinuz-4.12.1-kirkwood-tld-1 -rwxr-xr-x 1 root root 3821528 Jul 16 2017 zImage-4.12.1-kirkwood-tld-1
# cat /boot/uEnv.txt custom_params=init=/bin/systemd ipv6.disable=1
# cat /proc/cmdline console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts orion_nand:1M(u-boot),-(rootfs)
importbootenv=echo Importing environment (uEnv.txt)...; env import -t $loadaddr $filesizebut there's no such line in the current environment. Is the uEnv.txt file read some other way?
|
Re: Replace ArchLinuxARM with Debian on GoFlexHome August 09, 2018 11:34PM |
Admin Registered: 13 years ago Posts: 18,580 |
Quote
Is the uEnv.txt file read some other way?
setenv devices ide setenv bootdev ide boot