|
ebbes
Re: Kirkwood U-boot - Getting all supported Kirkwoods on-board March 05, 2014 04:41AM |
|
Re: Kirkwood U-boot - Getting all supported Kirkwoods on-board March 05, 2014 05:49AM |
Admin Registered: 13 years ago Posts: 18,580 |
|
Re: Kirkwood U-boot - Getting all supported Kirkwoods on-board March 05, 2014 09:00AM |
Registered: 11 years ago Posts: 232 |
|
Re: Kirkwood U-boot - Getting all supported Kirkwoods on-board March 05, 2014 09:02AM |
Registered: 11 years ago Posts: 232 |
|
ebbes
Re: Kirkwood U-boot - Getting all supported Kirkwoods on-board March 05, 2014 11:27AM |
|
ebbes
Re: Kirkwood U-boot - Getting all supported Kirkwoods on-board March 05, 2014 11:43AM |
Pogov4> ide
ide - IDE sub-system
Usage:
ide reset - reset IDE controller
ide info - show available IDE devices
ide device [dev] - show or set current device
ide part [dev] - print partition table of one or all IDE devices
ide read addr blk# cnt
ide write addr blk# cnt - read/write `cnt' blocks starting at block `blk#'
to/from memory address `addr'
Pogov4> ide reset
Reset IDE: Bus 0: OK Bus 1: not available
Device 0: Model: ST3250823AS Firm: 3.03 Ser#: 5ND0W6F7
Type: Hard Disk
Supports 48-bit addressing
Capacity: 238475.1 MB = 232.8 GB (488397168 x 512)
Pogov4> ext4ls ide 0:1 /
<DIR> 4096 .
<DIR> 4096 ..
<DIR> 16384 lost+found
<DIR> 4096 test
3930736 uImage
Pogov4> ext4load ide 0:1 0x800000 /uImage
3930736 bytes read in 733 ms (5.1 MiB/s)
Pogov4> bootm 0x800000
## Booting kernel from Legacy Image at 00800000 ...
Image Name: Linux-3.13.5-1-ARCH
Created: 2014-02-23 9:58:43 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3930672 Bytes = 3.7 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
Using machid 0xf78 from environment
Starting kernel ...
And yeah, it boots. Okay, kernel panic because I did not set bootargs (didn't find rootfs), but -- to my surprise -- SATA seems to work perfectly in uboot. Now I just need to figure out which branch this build was taken from (or simpler: which branch has 2014.01-00005-g4d45eec-dirty commit in it) and do some further testing before I put my tree on GitHub.
|
Re: Kirkwood U-boot - Getting all supported Kirkwoods on-board March 05, 2014 12:39PM |
Registered: 11 years ago Posts: 232 |
|
Re: Kirkwood U-boot - Getting all supported Kirkwoods on-board March 05, 2014 12:41PM |
Registered: 11 years ago Posts: 232 |
|
ebbes
Re: Kirkwood U-boot - Getting all supported Kirkwoods on-board March 05, 2014 01:09PM |
|
Re: Kirkwood U-boot - Getting all supported Kirkwoods on-board March 05, 2014 01:12PM |
Registered: 11 years ago Posts: 232 |
|
Re: Kirkwood U-boot - Getting all supported Kirkwoods on-board March 05, 2014 03:03PM |
Admin Registered: 13 years ago Posts: 18,580 |
> Pogov4> ide > ide - IDE sub-system > > Usage: > ide reset - reset IDE controller > ide info - show available IDE devices > ide device [dev] - show or set current device > ide part [dev] - print partition table of one or > all IDE devices > ide read addr blk# cnt > ide write addr blk# cnt - read/write `cnt' blocks > starting at block `blk#' > to/from memory address `addr' > Pogov4> ide reset > > Reset IDE: Bus 0: OK Bus 1: not available > Device 0: Model: ST3250823AS Firm: 3.03 Ser#: > 5ND0W6F7 > Type: Hard Disk > Supports 48-bit addressing > Capacity: 238475.1 MB = 232.8 GB > (488397168 x 512) > Pogov4> ext4ls ide 0:1 / > <DIR> 4096 . > <DIR> 4096 .. > <DIR> 16384 lost+found > <DIR> 4096 test > 3930736 uImage > Pogov4> ext4load ide 0:1 0x800000 /uImage > 3930736 bytes read in 733 ms (5.1 MiB/s) > Pogov4> bootm 0x800000 > ## Booting kernel from Legacy Image at 00800000 > ... > Image Name: Linux-3.13.5-1-ARCH > Created: 2014-02-23 9:58:43 UTC > Image Type: ARM Linux Kernel Image > (uncompressed) > Data Size: 3930672 Bytes = 3.7 MiB > Load Address: 00008000 > Entry Point: 00008000 > Verifying Checksum ... OK > Loading Kernel Image ... OK > Using machid 0xf78 from environment > > Starting kernel ... >> And yeah, it boots. Okay, kernel panic because I
|
Re: Kirkwood U-boot - Getting all supported Kirkwoods on-board March 05, 2014 03:13PM |
Admin Registered: 13 years ago Posts: 18,580 |
|
Re: Kirkwood U-boot - Getting all supported Kirkwoods on-board March 05, 2014 04:08PM |
Registered: 11 years ago Posts: 232 |
|
Re: Kirkwood U-boot - Getting all supported Kirkwoods on-board March 05, 2014 08:49PM |
Registered: 11 years ago Posts: 232 |
|
Re: Kirkwood U-boot - Getting all supported Kirkwoods on-board March 06, 2014 01:21AM |
Admin Registered: 13 years ago Posts: 18,580 |
|
Re: Kirkwood U-boot - Getting all supported Kirkwoods on-board March 06, 2014 03:45AM |
Registered: 10 years ago Posts: 21 |
gcc -o kwboot kwboot.cThen you can boot the image via
./kwboot -b uboot.mtd0.kwb -p -t -B 115200 /dev/ttyUSB0Look out for -p option which patches image in memory before sending it to the device. Also note that I had no success in booting with one of my TTY adapters, the device doesn't seem to like every adapter.
|
Re: Kirkwood U-boot - Getting all supported Kirkwoods on-board March 07, 2014 11:19AM |
Registered: 13 years ago Posts: 38 |
83 % [......................................................................]
85 % [......................................................................]
87 % [......................................................................]
88 % [......................................................................]
90 % [......................................................................]
92 % [......................................................................]
94 % [......................................................................]
95 % [......................................................................]
97 % [......................................................................]
99 % [....................................]
[Type Ctrl-\ + c to quit]
U-Boot 2014.01-pogoplugv4 (Mar 05 2014 - 20:11:39)
Pogoplug v4/Mobile
SoC: Kirkwood 88F6281_A1
DRAM: 128 MiB
WARNING: Caches not enabled
NAND: 128 MiB
MMC: kwsdio: 0
*** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
Net: egiga0
Warning: failed to set MAC address
Hit any key to stop autoboot: 0
Pogov4> ide
ide - IDE sub-system
Usage:
ide reset - reset IDE controller
ide info - show available IDE devices
ide device [dev] - show or set current device
ide part [dev] - print partition table of one or all IDE devices
ide read addr blk# cnt
ide write addr blk# cnt - read/write `cnt' blocks starting at block `blk#'
to/from memory address `addr'
Pogov4> ide reset
Reset IDE: ide_preinit failed
Pogov4>
|
Re: Kirkwood U-boot - Getting all supported Kirkwoods on-board March 07, 2014 03:27PM |
Admin Registered: 13 years ago Posts: 18,580 |
|
Re: Kirkwood U-boot - Getting all supported Kirkwoods on-board March 07, 2014 06:01PM |
Registered: 13 years ago Posts: 38 |
|
Re: Kirkwood U-boot - Getting all supported Kirkwoods on-board March 07, 2014 06:16PM |
Admin Registered: 13 years ago Posts: 18,580 |
Reset IDE: ide_preinit failed
|
Re: Kirkwood U-boot - Getting all supported Kirkwoods on-board March 07, 2014 07:56PM |
Registered: 13 years ago Posts: 38 |
99 % [....................................]
[Type Ctrl-\ + c to quit]
U-Boot 1.1.4 (Feb 12 2014 - 19:25:05) Cloud Engines 1.1.2 (3.4.27) MW1402121924 SATA PHYADDR=0
U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CFBE0
Soc: 88F6192 A1 (DDR2)
CPU running @ 800Mhz L2 running @ 400Mhz
SysClock = 200Mhz , TClock = 166Mhz
DRAM CAS Latency = 3 tRP = 3 tRAS = 8 tRCD=3
DRAM CS[0] base 0x00000000 size 128MB
DRAM Total size 128MB 16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:128 MB
Flash: 0 kB
CPU : Marvell Feroceon (Rev 1)
CLOUD ENGINES BOARD: PPV4A3
Streaming disabled
Write allocate disabled
USB 0: host mode
PEX 0: PCI Express Root Complex Interface
PEX interface detected Link X1
Net: egiga0 [PRIME]
(Re)start USB...
USB: scanning bus for devices... 1 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
0 Storage Device(s) found
egiga0 no link
Using egiga0 device
## Warning: gatewayip needed but not set
## Warning: gatewayip needed but not set
ping failed; host 198.19.81.98 is not alive
Hit any key to stop autoboot: 0
UB>>
UB>> ide reset
Reset IDE:
Marvell Serial ATA Adapter
Integrated Sata device found
[0 0 0]: Enable DMA mode (6)
Device 0 @ 0 0:
Model: ST1000LM024 HN-M101MBB Firm: 2BA30001 Ser#: S30CJ9ADB07860
Type: Hard Disk
Supports 48-bit addressing
Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)
|
Re: Kirkwood U-boot - Getting all supported Kirkwoods on-board March 07, 2014 09:20PM |
Admin Registered: 13 years ago Posts: 18,580 |
|
Re: Kirkwood U-boot - Getting all supported Kirkwoods on-board March 07, 2014 09:29PM |
Registered: 13 years ago Posts: 38 |
|
Re: Kirkwood U-boot - Getting all supported Kirkwoods on-board March 08, 2014 10:03AM |
Registered: 10 years ago Posts: 21 |
u32 timeleft = 10000; /* wait at most 10 ms for SATA reset to complete */ /* Hard reset */ writel(MVSATA_EDMA_CMD_ATA_RST, &port->edma_cmd); udelay(25); /* taken from original marvell port */ writel(0, &port->edma_cmd);So maybe 10000 is to low for Pogoplug v4 (while 25 should be correct).
/* Fix for 88SX60X1 FEr #10 - retry SATA communication if failed 5 times */ /* this workaround applied for all devices for simplicity and robustness */88SX60X1 doesn't seem to be Kirkwood afaik, so I think we can ignore this bit.
Model: ST1000LM024 HN-M101MBB Firm: 2BA30001 Ser#: S30CJ9ADB07860
Type: Hard Disk
Supports 48-bit addressing
Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)
my drive:
Device 0: Model: SAMSUNG HN-M101MBB Firm: 2AR10001 Ser#: S2R8J1KBB00967
Type: Hard Disk
Supports 48-bit addressing
Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)
Fun fact: same drives, but my firmware revision is older (before Seagate bought Samsung HDD), so it's really weird that my drive works while yours doesn't.
|
Re: Kirkwood U-boot - Getting all supported Kirkwoods on-board March 08, 2014 12:28PM |
Registered: 13 years ago Posts: 38 |
U-Boot 2014.01-pogoplugv4-dirty (Mar 08 2014 - 18:40:46)
Pogoplug v4/Mobile
SoC: Kirkwood 88F6281_A1
DRAM: 128 MiB
WARNING: Caches not enabled
NAND: 128 MiB
MMC: kwsdio: 0
*** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
Net: egiga0
Warning: failed to set MAC address
Hit any key to stop autoboot: 0
Pogov4> ide
ide - IDE sub-system
Usage:
ide reset - reset IDE controller
ide info - show available IDE devices
ide device [dev] - show or set current device
ide part [dev] - print partition table of one or all IDE devices
ide read addr blk# cnt
ide write addr blk# cnt - read/write `cnt' blocks starting at block `blk#'
to/from memory address `addr'
Pogov4> ide reset
Reset IDE: ebbes debug: timeout is increased by factor 2.
ebbes debug: mvsata_ide_initialize_port timed out.
ebbes debug: timeout is increased by factor 2.
ebbes debug: mvsata_ide_initialize_port timed out.
ide_preinit failed
Pogov4>
|
Re: Kirkwood U-boot - Getting all supported Kirkwoods on-board March 08, 2014 12:45PM |
Registered: 10 years ago Posts: 21 |
|
Re: Kirkwood U-boot - Getting all supported Kirkwoods on-board March 08, 2014 12:52PM |
Registered: 13 years ago Posts: 38 |
99 % [....................................] [Type Ctrl-\ + c to quit] U-Boot 2014.01-pogoplugv4-dirty (Mar 08 2014 - 19:39:24) Pogoplug v4/Mobile SoC: Kirkwood 88F6281_A1 DRAM: 128 MiB WARNING: Caches not enabled NAND: 128 MiB MMC: kwsdio: 0 *** Warning - bad CRC, using default environment In: serial Out: serial Err: serial Net: egiga0 Warning: failed to set MAC address Hit any key to stop autoboot: 0 Pogov4> ide reset Reset IDE: ebbes debug: timeout is increased by factor 2. ebbes debug: timeout is increased by factor 2. ide_preinit failed Pogov4>
|
Re: Kirkwood U-boot - Getting all supported Kirkwoods on-board March 08, 2014 03:26PM |
Registered: 10 years ago Posts: 21 |
|
Re: Kirkwood U-boot - Getting all supported Kirkwoods on-board March 08, 2014 03:28PM |
Admin Registered: 13 years ago Posts: 18,580 |
|
Re: Kirkwood U-boot - Getting all supported Kirkwoods on-board March 08, 2014 03:41PM |
Registered: 10 years ago Posts: 21 |