by Taker » Sun Oct 09, 2011 9:19 pm
$this->bbcode_second_pass_quote('redsquare', '')$this->bbcode_second_pass_quote('Taker', '
')I'm really sure, that I misunderstood or did not understood some of your explanations, so please could you take a look at my steps above and give me a hint where something is wrong?
Taker,
At the moment we can only use "bricked" pogos by booting from the SATA drive. No one has managed to successfully restore a boot loader back into flash.
Your problem seems to be related to the loading of the kernel image. You might want to try dding the image back to the disk again, failing that post you U-Boot env.
Thanks a lot!
I did the procedure again with another SATA drive and made a progress with my "bricked" B04-Pogo.
I also changed the bootargs with 'setenv bootargs root=/dev/sdb1 console=ttyS0,115200 rootwait mem=128M', followed by the 'run select0 load1' & 'bootm 60500000' and kernel loading began:
$this->bbcode_second_pass_code('', 'U-Boot 1.1.2 (Aug 26 2010 - 14:02:09)
U-Boot code: 60D00000 -> 60D1948C BSS: -> 60D1D11C
RAM Configuration:
Bank #0: 60000000 256 MB
SRAM Configuration:
64KB at 0x50000000
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
PLX>>setenv bootargs root=/dev/sdb1 console=ttyS0,115200 rootwait mem=128M
PLX>>printenv
bootcmd=run select0 load1 load_rd boot || run lightled select0 load2 load_rd extinguishled boot || lightled
bootdelay=3
baudrate=115200
ethaddr=00:30:e0:00:00:01
ipaddr=172.31.0.128
serverip=172.31.0.100
autoload=n
netmask=255.255.0.0
bootfile="uImage"
select0=ide dev 0
load1=ide read 0x60500000 50a 1644
load2=ide read 0x60500000 e3e8 1644
load_rd=ide read 0x60800000 4122 1644
lightled=ledfail 1
extinguishled=ledfail 0
boot=bootm 60500000 60800000
stdin=serial
stdout=serial
stderr=serial
bootargs=root=/dev/sdb1 console=ttyS0,115200 rootwait mem=128M
Environment size: 556/8188 bytes
PLX>>run select0 load1
IDE device 0: Model: ST380013AS Firm: 8.12 Ser#: 5MR2TQPX
Type: Hard Disk
Capacity: 76293.9 MB = 74.5 GB (156250000 x 512)
... is now current device
IDE read: device 0 block # 1290, count 5700 ... 5700 blocks read: OK
PLX>>bootm 60500000
## 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................................................................................................................................. done, booting the kernel.
[ 0.000000] Linux version 2.6.31.6_SMP_820 (root@ProDev) (gcc version 4.6.0 20110429 (prerelease) (GCC) ) #99 SMP Sun May 29 03:04:43 EDT 2011
[ 0.000000] CPU: ARMv6-compatible processor [410fb025] revision 5 (ARMv7), cr=00c5387f
[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[ 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 pages: 32512
[ 0.000000] Kernel command line: root=/dev/sda1 console=ttyS0,115200 rootwait mem=128M
[ 0.000000] PID hash table entries: 512 (order: 9, 2048 bytes)
[ 0.000000] Dentry cache 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: 125524KB available (3636K code, 296K data, 128K init, 0K highmem)
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] NR_IRQS:96
[ 0.000000] OX820_RPS_init_irq: interrupts 64 to 96
[ 0.010000] Console: colour dummy device 80x30
[ 0.010000] console [ttyS0] enabled
[ 0.020000] Calibrating delay loop... 239.20 BogoMIPS (lpj=1196032)
[ 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... 299.99MHz.
[ 0.340000] CPU1: Booted secondary processor
[ 0.440000] Calibrating delay loop... 239.20 BogoMIPS (lpj=1196032)
[ 0.680000] Brought up 2 CPUs
[ 0.690000] SMP: Total of 2 processors activated (478.41 BogoMIPS).
[ 0.700000] NET: Registered protocol family 16
[ 0.700000] Number of DMA channels = 4, version = 4
[ 0.710000] Reserving a DMA channel for DirectRAID
[ 0.710000] Allocating 389 SRAM generic DMA descriptors
')
Using your script without changing the default value for the kernel (uImage.pci) booting stops after these lines

.
So I changed it to 'uImage.nopci' from
http://archlinuxarm.org/os/ArchLinuxARM ... est.tar.gz.
Now with the 'uImage.nopci' it leads to:
$this->bbcode_second_pass_code('', 'PLX>>bootm 60500000
## 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................................................................................................................................... done, booting the kernel.
[ 0.000000] Linux version 2.6.31.6_SMP_820 (root@ProDev) (gcc version 4.6.0 20110429 (prerelease) (GCC) ) #100 SMP Sun May 29 04:53:45 EDT 2011
[ 0.000000] CPU: ARMv6-compatible processor [410fb025] revision 5 (ARMv7), cr=00c5387f
[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[ 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 pages: 32512
[ 0.000000] Kernel command line: root=/dev/sdb1 console=ttyS0,115200 rootwait mem=128M
[ 0.000000] PID hash table entries: 512 (order: 9, 2048 bytes)
[ 0.000000] Dentry cache 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 highmem)
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] NR_IRQS:96
[ 0.000000] OX820_RPS_init_irq: interrupts 64 to 96
[ 0.010000] Console: colour dummy device 80x30
[ 0.010000] console [ttyS0] enabled
[ 0.020000] Calibrating delay loop... 239.20 BogoMIPS (lpj=1196032)
[ 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... 299.99MHz.
[ 0.340000] CPU1: Booted secondary processor
[ 0.440000] Calibrating delay loop... 239.20 BogoMIPS (lpj=1196032)
[ 0.680000] Brought up 2 CPUs
[ 0.690000] SMP: Total of 2 processors activated (478.41 BogoMIPS).
[ 0.700000] NET: Registered protocol family 16
[ 0.700000] Number of DMA channels = 4, version = 4
[ 0.710000] Reserving a DMA channel for DirectRAID
[ 0.710000] Allocating 389 SRAM generic DMA descriptors
[ 0.730000] bio: create slab <bio-0> at 0
[ 0.740000] SCSI subsystem initialized
[ 0.750000] usbcore: registered new interface driver usbfs
[ 0.750000] usbcore: registered new interface driver hub
[ 0.760000] usbcore: registered new device driver usb
[ 0.790000] NET: Registered protocol family 2
[ 0.790000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.800000] Switched to NOHz mode on CPU #0
[ 0.800000] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.800000] Switched to NOHz mode on CPU #1
[ 0.810000] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.820000] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.820000] TCP reno registered
[ 0.830000] NET: Registered protocol family 1
[ 0.830000] Create fragment cache
[ 0.840000] fuse init (API version 7.12)
[ 0.850000] msgmni has been set to 245
[ 0.850000] alg: No test for stdrng (krng)
[ 0.860000] io scheduler noop registered
[ 0.860000] io scheduler anticipatory registered (default)
[ 0.870000] io scheduler deadline registered
[ 0.870000] io scheduler cfq registered
[ 0.900000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.900000] serial8250: ttyS0 at MMIO 0x44200000 (irq = 55) is a 16550A
[ 0.920000] brd: module loaded
[ 0.930000] loop: module loaded
[ 0.940000] ox820sata: OX820 sata core.
[ 0.940000] scsi0 : oxnassata
[ 0.950000] scsi1 : oxnassata
[ 0.950000] ata1: SATA max UDMA/133 irq 50
[ 0.950000] ata2: SATA max UDMA/133 irq 50
[ 0.960000] ox820sata: reseting SATA core
[ 1.480000] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[ 1.480000] ata1.00: ATA-6: ST380013AS, 8.12, max UDMA/133
[ 1.490000] ata1.00: 156250000 sectors, multi 0: LBA48 NCQ (depth 0/32)
[ 1.500000] ata1.00: configured for UDMA/133
[ 1.500000] ox820sata: reseting SATA core
[ 2.220000] ata2: SATA link down (SStatus 0 SControl 300)
[ 2.220000] scsi 0:0:0:0: Direct-Access ATA ST380013AS 8.12 PQ: 0 ANSI: 5
[ 2.230000] sd 0:0:0:0: [sda] 156250000 512-byte logical blocks: (80.0 GB/74.5 GiB)
[ 2.240000] sd 0:0:0:0: [sda] Write Protect is off
[ 2.240000] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 2.250000] sda:
[ 2.260000] tun: Universal TUN/TAP device driver, 1.6
[ 2.260000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[ 2.270000] sda1
[ 2.270000] NAND: Page read time 40ms
[ 2.280000] NAND device: Manufacturer ID: 0xad, Chip ID: 0xf1 (Hynix NAND 128MiB 3,3V 8-bit)
[ 2.280000] Scanning device for bad blocks
[ 2.360000] sd 0:0:0:0: [sda] Attached SCSI disk
[ 2.360000] Creating 2 MTD partitions on "NAND 128MiB 3,3V 8-bit":
[ 2.360000] 0x000000000000-0x000000e00000 : "boot"
[ 2.360000] 0x000000e00000-0x000008000000 : "rootfs"
[ 2.380000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 2.390000] oxnas-ehci oxnas-ehci.0: OXNAS EHCI Host Controller
[ 2.400000] oxnas-ehci oxnas-ehci.0: new USB bus registered, assigned bus number 1
[ 2.440000] oxnas-ehci oxnas-ehci.0: irq 39, io mem 0x00000000
[ 2.460000] oxnas-ehci oxnas-ehci.0: USB 0.0 started, EHCI 1.00
[ 2.460000] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 2.470000] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 2.480000] usb usb1: Product: OXNAS EHCI Host Controller
[ 2.480000] usb usb1: Manufacturer: Linux 2.6.31.6_SMP_820 ehci_hcd
[ 2.490000] usb usb1: SerialNumber: usb
[ 2.490000] usb usb1: configuration #1 chosen from 1 choice
[ 2.500000] hub 1-0:1.0: USB hub found
[ 2.500000] hub 1-0:1.0: 2 ports detected
[ 2.510000] Initializing USB Mass Storage driver...
[ 2.510000] usbcore: registered new interface driver usb-storage
[ 2.520000] USB Mass Storage support registered.
[ 2.520000] mice: PS/2 mouse device common for all mice
[ 2.530000] TCP cubic registered
[ 2.530000] NET: Registered protocol family 10
[ 2.540000] NET: Registered protocol family 17
[ 2.540000] RPC: Registered udp transport module.
[ 2.550000] RPC: Registered tcp transport module.
[ 2.550000] Waiting for root device /dev/sdb1...
[ 2.820000] usb 1-1: new high speed USB device using oxnas-ehci and address 2
[ 2.970000] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[ 2.970000] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 2.980000] usb 1-1: Product: USB2.0 Hub
[ 2.990000] usb 1-1: configuration #1 chosen from 1 choice
[ 2.990000] hub 1-1:1.0: USB hub found
[ 3.000000] hub 1-1:1.0: 4 ports detected
')
Now I'm really unsure wich output I should expect after these lines, because serial output stops here and nothing else seems to happen. Did I forget something again?