[How-To] Boot Entirely from SATA

This forum is for all other ARMv5 devices

Re: [How-To] Boot Entirely from SATA

Postby obaltus » Mon Feb 06, 2012 1:39 pm

I guess, it overwrote the first one.
Now I have the following settings;

$this->bbcode_second_pass_code('', 'setenv bootargs "root=/dev/sda2 console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 rootwait ubi.mtd=2,512"
setenv bootcmd "run dload1 boot || run dload2 boot || lightled"
setenv dload1 "diskboot 60500000 0:1"
setenv dload2 "diskboot 60500000 0:2"
')

Now, it is booting than kind of looping with a bad magic number in between. Any idea?

$this->bbcode_second_pass_code('', 'U-Boot 1.1.2 (Dec 31 2011 - 15:24:45)

U-Boot code: 60E00000 -> 60E1FB34 BSS: -> 60E5435C
RAM Configuration:
Bank #0: 60000000 128 MB
SRAM Configuration:
64KB at 0x50000000
NAND:No NAND device found!!!
0 MiB
In: serial
Out: serial
Err: serial
Setting Linux mem= boot arg value

IDE read: device 0 block # 288, count 1 ... 1 blocks read: OK
Hit any key to stop autoboot: 0

Loading from IDE device 0, partition 1: Name: hda1
Type: U-Boot
Image Name: Linux-2.6.31.6_SMP_820
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2159884 Bytes = 2.1 MB
Load Address: 60008000
Entry Point: 60008000
## Booting image at 60500000 ...
Image Name: Linux-2.6.31.6_SMP_820
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2159884 Bytes = 2.1 MB
Load Address: 60008000
Entry Point: 60008000
Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 60800000 ...
Bad Magic Number
Stage-1 Bootloader Mon Nov 14 22:15:13 EST 2011
Attempting to set PLLA to 700MHz ...
plla_ctrl0 : 0x0000000A
plla_ctrl1 : 0x000E0000
plla_ctrl2 : 0x001B01A0
plla_ctrl3 : 0x00000016
PLLA Set

Setup memory, testing
Reading disk 0, Image 0
Sector : 0x0000009A
Hdr len: 0x0001FB34
Hdr CRC: 0x2229BDCD
OK
Initialising disks
SATA PHY not ready for device 1
Detecting SATA busses:
Bus 0: Found first device OK
Device 0: Model: ST32000542AS Firm: CC38 Ser#: 5XW2RHFR
Type: Hard Disk
Capacity: 131071.9 MB = 127.9 GB (268435455 x 512)
Device 1: not available
Environment successfully read from disk 0 primary image


U-Boot 1.1.2 (Dec 31 2011 - 15:24:45)

U-Boot code: 60E00000 -> 60E1FB34 BSS: -> 60E5435C
RAM Configuration:
Bank #0: 60000000 128 MB
SRAM Configuration:
64KB at 0x50000000
NAND:No NAND device found!!!
0 MiB
In: serial
Out: serial
Err: serial
Setting Linux mem= boot arg value

IDE read: device 0 block # 288, count 1 ... 1 blocks read: OK
Hit any key to stop autoboot: 0

Loading from IDE device 0, partition 1: Name: hda1
Type: U-Boot
Image Name: Linux-2.6.31.6_SMP_820
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2159884 Bytes = 2.1 MB
Load Address: 60008000
Entry Point: 60008000
## Booting image at 60500000 ...
Image Name: Linux-2.6.31.6_SMP_820
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2159884 Bytes = 2.1 MB
Load Address: 60008000
Entry Point: 60008000
Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 60800000 ...
Bad Magic Number
Stage-1 Bootloader Mon Nov 14 22:15:13 EST 2011
Attempting to set PLLA to 700MHz ...
plla_ctrl0 : 0x0000000A
plla_ctrl1 : 0x000E0000
plla_ctrl2 : 0x001B01A0
plla_ctrl3 : 0x00000016
PLLA Set

Setup memory, testing
Reading disk 0, Image 0
Sector : 0x0000009A
Hdr len: 0x0001FB34
Hdr CRC: 0x2229BDCD
OK
Initialising disks .................................. ')
obaltus
 
Posts: 10
Joined: Mon Jan 30, 2012 1:46 pm

Re: [How-To] Boot Entirely from SATA

Postby WarheadsSE » Mon Feb 06, 2012 1:56 pm

$this->bbcode_second_pass_code('', 'boot=bootm 60500000 60800000')
I missed this, sorry.
$this->bbcode_second_pass_code('', 'boot=bootm 60500000')
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: [How-To] Boot Entirely from SATA

Postby obaltus » Mon Feb 06, 2012 2:17 pm

Thanks for your help, now it is booting the kernel! But it hangs while trying to initialize the NAND. How can I prevent it from trying to initialize the NAND? Setting arcNumber to 3975? recompiling uboot or a new kernel?


$this->bbcode_second_pass_quote('', 'S')tage-1 Bootloader Mon Nov 14 22:15:13 EST 2011
Attempting to set PLLA to 700MHz ...
plla_ctrl0 : 0x0000000A
plla_ctrl1 : 0x000E0000
plla_ctrl2 : 0x001B01A0
plla_ctrl3 : 0x00000016
PLLA Set

Setup memory, testing
Reading disk 0, Image 0
Sector : 0x0000009A
Hdr len: 0x0001FB34
Hdr CRC: 0x2229BDCD
OK
Initialising disks
SATA PHY not ready for device 1
Detecting SATA busses:
Bus 0: Found first device OK
Device 0: Model: ST32000542AS Firm: CC38 Ser#: 5XW2RHFR
Type: Hard Disk
Capacity: 131071.9 MB = 127.9 GB (268435455 x 512)
Device 1: not available
Environment successfully read from disk 0 primary image


U-Boot 1.1.2 (Dec 31 2011 - 15:24:45)

U-Boot code: 60E00000 -> 60E1FB34 BSS: -> 60E5435C
RAM Configuration:
Bank #0: 60000000 128 MB
SRAM Configuration:
64KB at 0x50000000
NAND:No NAND device found!!!
0 MiB
In: serial
Out: serial
Err: serial
Setting Linux mem= boot arg value

IDE read: device 0 block # 288, count 1 ... 1 blocks read: OK
Hit any key to stop autoboot: 0

Loading from IDE device 0, partition 1: Name: hda1
Type: U-Boot
Image Name: Linux-2.6.31.6_SMP_820
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2159884 Bytes = 2.1 MB
Load Address: 60008000
Entry Point: 60008000
## Booting image at 60500000 ...
Image Name: Linux-2.6.31.6_SMP_820
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2159884 Bytes = 2.1 MB
Load Address: 60008000
Entry Point: 60008000
Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux.............................................................

crc error

-- System haltedStage-1 Bootloader Mon Nov 14 22:15:13 EST 2011
Attempting to set PLLA to 700MHz ...
plla_ctrl0 : 0x0000000A
plla_ctrl1 : 0x000E0000
plla_ctrl2 : 0x001B01A0
plla_ctrl3 : 0x00000016
PLLA Set

Setup memory, testing
Reading disk 0, Image 0
Sector : 0x0000009A
Hdr len: 0x0001FB34
Hdr CRC: 0x2229BDCD
OK
Initialising disks
SATA PHY not ready for device 1
Detecting SATA busses:
Bus 0: Found first device OK
Device 0: Model: ST32000542AS Firm: CC38 Ser#: 5XW2RHFR
Type: Hard Disk
Capacity: 131071.9 MB = 127.9 GB (268435455 x 512)
Device 1: not available
Environment successfully read from disk 0 primary image


U-Boot 1.1.2 (Dec 31 2011 - 15:24:45)

U-Boot code: 60E00000 -> 60E1FB34 BSS: -> 60E5435C
RAM Configuration:
Bank #0: 60000000 128 MB
SRAM Configuration:
64KB at 0x50000000
NAND:No NAND device found!!!
0 MiB
In: serial
Out: serial
Err: serial
Setting Linux mem= boot arg value

IDE read: device 0 block # 288, count 1 ... 1 blocks read: OK
Hit any key to stop autoboot: 0

Loading from IDE device 0, partition 1: Name: hda1
Type: U-Boot
Image Name: Linux-2.6.31.6_SMP_820
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2159884 Bytes = 2.1 MB
Load Address: 60008000
Entry Point: 60008000
## Booting image at 60500000 ...
Image Name: Linux-2.6.31.6_SMP_820
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2159884 Bytes = 2.1 MB
Load Address: 60008000
Entry Point: 60008000
Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux.............................................................
[ 0.000000] Linux version 2.6.31.6_SMP_820 (root@ProDev) (gcc version 4.6.0 1
[ 0.000000] CPU: ARMv6-compatible processor [410fb025] revision 5 (ARMv7), cf
[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction ce
[ 0.000000] Machine: Oxsemi NAS
[ 0.000000] 1 memory region
[ 0.000000] Ignoring unrecognised tag 0x00000000
[ 0.000000] Memory policy: ECC disabled, Data cache writealloc
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pa2
[ 0.000000] Kernel command line: root=/dev/sda2 console=ttyS0,115200 elevatos
[ 0.000000] PID hash table entries: 512 (order: 9, 2048 bytes)
[ 0.000000] Dentache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Memory: 128MB = 128MB total
[ 0.000000] Memory: 125496KB available (3692K code, 291K data, 124K init, 0K)
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] NR_IRQS:96
[ 0.000000] OX820_init_irq: interrupts 64 to 96
[ 0.010000] Console: colour dummy device 80x30
[ 0.010000] console [ttyS0] enabled
[ 0.020000] Calibrating delay loop... 279.34 BogoMIPS (lpj=1396736)
[ 0.260000] Security Framework initialized
[ 0.260000] Mount-cache hash table entries: 512
[ 0.270000] CPU: Testing write buffer coherency: ok
[ 0.270000] Calibrating local timer... 349.99MHz.
[ 0.340000] CPU1: Booted secondary processor
[ 0.440000] Calibrating delay loop... 279.34 BogoMIPS (lpj=1396736)
[ 0.670000] Brought up 2 CPUs
[ 0.680000] SMP: Total of 2 processors activated (558.69 BogoMIPS).
[ 0.690000] NET: Registered protocol family 16
[ 0.690000] Number of DMA channels = 4, version = 4
[ 0.700000] Reserving a DMA channel for DirectRAID
[ 0.700000] Allocating 389 SRAM generic DMA descriptors
[ 0.720000] bio: create slab <bio-0> at 0
[ 0.730000] SCSI subsystem initialized
[ 0.730000] usbcore: registered new interface driver usbfs
[ 0.740000] usbcore: registered new interface driver hub
[ 0.740000] usbcore: registered new device driver usb
[ 0.780000] NET: Registered protocol family 2
[ 0.780000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.790000] Switched to NOHz mode on CPU #0
[ 0.790000] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.790000] Switched to NOHz mode on CPU #1
[ 0.800000] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.810000] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.810000] TCP reno registered
[ 0.820000] NET: Registered protocol family 1
[ 0.820000] Create fragment cache
[ 0.830000] fuse init (API version 7.12)
[ 0.830000] msgmni has been set to 245
[ 0.840000] alg: No test for stdrng (krng)
[ 0.850000] io scheduler noop registered
[ 0.850000] io scheduler anticipatory registered
[ 0.850000] io scheduler deadline registered
[ 0.860000] io scheduler cfq registered (default)
[ 0.880000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.890000] serial8250: ttyS0 at MMIO 0x44200000 (irq = 55) is a 16550A
[ 0.900000] brd: module loaded
[ 0.910000] loop: module loaded
[ 0.920000] ox820sata: OX820 sata core.
[ 0.920000] scsi0 : oxnassata
[ 0.930000] scsi1 : oxnassata
[ 0.930000] ata1: SATA max UDMA/133 irq 50
[ 0.930000] ata2: SATA max UDMA/133 irq 50
[ 0.940000] ox820sata: reseting SATA core
[ 1.460000] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[ 1.460000] ata1.00: ATA-8: ST32000542AS, CC38, max UDMA/133
[ 1.470000] ata1.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 0/32)
[ 1.480000] ata1.00: configured for UDMA/133
[ 1.480000] ox820sata: reseting SATA core
[ 2.190000] ata2: SATA link down (SStatus 0 SControl 300)
[ 2.190000] scsi 0:0:0:0: Direct-Access ATA ST32000542AS CC38 P5
[ 2.200000] sd 0:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1)
[ 2.210000] sd 0:0:0:0: [sda] Write Protect is off
[ 2.210000] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doeA
[ 2.220000] tun: Universal TUN/TAP device driver, 1.6
[ 2.220000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[ 2.230000] sda: sda1 sda2
[ 2.250000] sd 0:0:0:0: [sda] Attached SCSI disk
[ 4.220000] OX820 NAND Timeout waiting for ready
[ 6.220000] OX820 NAND Timeout waiting for ready
[ 6.220000] NAND: Page read time 49ms
obaltus
 
Posts: 10
Joined: Mon Jan 30, 2012 1:46 pm

Re: [How-To] Boot Entirely from SATA

Postby WarheadsSE » Mon Feb 06, 2012 3:26 pm

I would say that the easiest would be a different kernel.

I suppose this discussion should be a different thread however.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: [How-To] Boot Entirely from SATA

Postby youngbilly » Sun Feb 12, 2012 12:16 am

Hi WarheadsSE,

Thank you for doing this for the community. I know I started asking you this disc image, and you come to the rescure with this method. I have been very busy with other part of my life. Just got time to do this today. The prototype works great. I did used a SATA disc and external power adapter for the disc, it seem working fine with my POGOPLUG PRO.

I have two questions for you:

1. Why does the green light keep flushing?
2. Is it possible that I can flush the boot sector to the on-board memory (NAND?) so I do not need to use a SATA disc directly connected to the internal board? To give you some back groud, when I was trying to install the system, in middle of it, I quit a little too early that messed us the onboard boot sector. I do not like to mess with the external power supply to a bare SATA kit.

Thank you agian for this boot image. It made my POGOPLUG Pro usuable again.
youngbilly
 
Posts: 15
Joined: Tue Nov 02, 2010 3:39 am

Re: [How-To] Boot Entirely from SATA

Postby WarheadsSE » Sun Feb 12, 2012 12:21 am

"Flashing" and yes, it can be done, as mentioned multiple times by people that have done that for themselves in this thread.

Check that a certain module is loaded. Look in /etc/rc.d/set-oxnas-mac, for the module's name. Might need to `depmod -a`
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: [How-To] Boot Entirely from SATA

Postby youngbilly » Sun Feb 12, 2012 1:14 am

Thanks.

I know you want us to search for how to flush the NAND with your boot sector. Can you or somebody else please point me what to search if I want to flush the NAND with the boot sector created by WarheadsSE? I don't mind my system a little slow, just dislike the wires to the SATA disc.

$this->bbcode_second_pass_quote('WarheadsSE', '&')quot;Flashing" and yes, it can be done, as mentioned multiple times by people that have done that for themselves in this thread.

Check that a certain module is loaded. Look in /etc/rc.d/set-oxnas-mac, for the module's name. Might need to `depmod -a`
youngbilly
 
Posts: 15
Joined: Tue Nov 02, 2010 3:39 am

Re: [How-To] Boot Entirely from SATA

Postby WarheadsSE » Sun Feb 12, 2012 6:37 am

My stage1 will not boot nand.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: [How-To] Boot Entirely from SATA

Postby youngbilly » Sun Feb 12, 2012 12:40 pm

Thanks WarheadsSE for your work on this device. Now I figured out how to restore to the original firmware. I had to read a couple thread and it went smoothly. Hope you don't mind I post the general steps here.

For those who messed up the NAND boot sector, here is what I did after I boot using SATA method listed in this thread:

1. Go to this post by WarheadsSE here. Make sure you can do all the steps listed there. You can copy it and paste to your SSH terminal.
2. wget http://archlinuxarm.org/os/oxnas/oxnas-revert.sh. Make sure it is excutable: chmod 700 oxnas-revert.sh
3. ./oxnas-revert.sh
4. Unplug the power, unplug the SATA disc, reboot.
5. Done.

Now, you can login at https://my.pogoplug.com/, start from scratch from here to redo your linux install.
youngbilly
 
Posts: 15
Joined: Tue Nov 02, 2010 3:39 am

Re: [How-To] Boot Entirely from SATA

Postby WarheadsSE » Sun Feb 12, 2012 4:18 pm

You really don't need to revert to fix like that.. but I guess you get the end result when you nuke toast..
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

PreviousNext

Return to Community Supported

Who is online

Users browsing this forum: No registered users and 21 guests