New IT forum Follow us on Twitter
07 February 2012, 02:50:59 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: EFIKA MX now in stock!
 
   Home   SHOP Help Search Login Register  
Pages: 1 [2]
  Print  
Author Topic: Installing debian  (Read 4079 times)
NewIT_Marcus
Administrator
Hero Member
*****
Posts: 960


« Reply #15 on: 14 July 2010, 10:58:06 pm »

The Bad partition error precedes the kernel error, and is surely the error to focus on.

Google gives a number of hits, including this:

http://us.generation-nt.com/answer/sheevaplug-squeeze-sd-wont-boot-power-up-help-197560281.html

Quote
Have you tried changing bootcmd_mmc so it will call mmcinit twice?

(in your case bootcmd_sata). The purpose is to allow proper spin-up.
Logged
pizzulicchio
Newbie
*
Posts: 7


« Reply #16 on: 15 July 2010, 03:34:43 pm »

i have try changing from

setenv bootcmd_sata 'ide reset; ext2load ide 0:1 0x01100000 /uInitrd; ext2load ide 0:1 0x00800000 /uImage'

to

setenv bootcmd_sata 'ide reset; ide reset; ext2load ide 0:1 0x01100000 /uInitrd; ext2load ide 0:1 0x00800000 /uImage'

is that you suggest to me to do?

i have try but same result...
Bad magic number...
Logged
darek
Jr. Member
**
Posts: 58


« Reply #17 on: 15 July 2010, 04:47:11 pm »

Try to reboot device, my GP also have problems with device (USB HD), once it does not find disk, once it does. That's why I've got "reset" at the end of boot_cmd.

My bootcmd looks like:

setenv bootargs_console 'root=/dev/sda6 console=ttyS0,115200'
setenv bootcmd_usb 'usb start; ext2load usb 0:1 0x01100000 /uInitrd; ext2load usb 0:1 0x00800000 /uImage;'
setenv bootcmd 'setenv bootargs $(bootargs_console);run bootcmd_usb; bootm 0x00800000 0x01100000; reset'
saveenv

Where /dev/sda is linux "/" partition.
Logged
NewIT_Marcus
Administrator
Hero Member
*****
Posts: 960


« Reply #18 on: 15 July 2010, 04:56:57 pm »

i have try changing from

setenv bootcmd_sata 'ide reset; ext2load ide 0:1 0x01100000 /uInitrd; ext2load ide 0:1 0x00800000 /uImage'

to

setenv bootcmd_sata 'ide reset; ide reset; ext2load ide 0:1 0x01100000 /uInitrd; ext2load ide 0:1 0x00800000 /uImage'

is that you suggest to me to do?

i have try but same result...
Bad magic number...

Yes, that is what I had in mind (sorry, should have clarified the command itself too).

Anyway, if the result is "Bad magic number" but NOT "Bad Partition", then the result is NOT the same. Do you still have the Bad Partition message?
Logged
pizzulicchio
Newbie
*
Posts: 7


« Reply #19 on: 15 July 2010, 05:22:05 pm »

This is the output:

         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|
 ** MARVELL BOARD: SHEEVA PLUG LE

U-Boot 1.1.4 (Jul 14 2009 - 06:46:57) Marvell version: 3.4.16

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CF120

Soc: 88F6281 A0 (DDR2)
CPU running @ 1200Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 200Mhz

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 256MB
DRAM CS[1] base 0x10000000   size 256MB
DRAM Total size 512MB  16bit width
Flash:  0 kB
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:512 MB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  0

Reset IDE:
Marvell Serial ATA Adapter
Integrated Sata device found
[0 1 0]: Enable DMA mode
  Device 1 @ 0 1:
Model: Hitachi HTS545050B9A302                  Firm: PB4OC64G Ser#: 091013PBC400Q7HAKNRG
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)

** Bad partition 1 **
** Bad partition 1 **
## Booting image at 00800000 ...
Bad Magic Number
Marvell>>
Logged
pizzulicchio
Newbie
*
Posts: 7


« Reply #20 on: 16 July 2010, 06:29:41 am »

PROBLEM SOLVED

I have to use 1:1 in bootcmd_sata instead of 0:1

In fact this is the output of "ide reset" and "ide part"

Marvell>> ide reset

Reset IDE:
Marvell Serial ATA Adapter
Integrated Sata device found
[0 1 0]: Enable DMA mode
  Device 1 @ 0 1:
Model: Hitachi HTS545050B9A302                  Firm: PB4OC64G Ser#: 091013PBC400Q7HAKNRG
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)

Marvell>> ide part


Partition Map for IDE device 1  --   Partition Type: DOS

Partition     Start Sector     Num Sectors     Type
    1                 2048         1951744      83
    2              1953792       972851200      83
    3            974804992         1968128      82

THOSE ARE THE CORRECT SETTINGS FOR THE U-BOOT TO MAKE THE BOOT FROM ESATA

setenv bootargs_console console=ttyS0,115200
setenv bootcmd_sata 'ide reset; ext2load ide 1:1 0x01100000 /uInitrd; ext2load ide 1:1 0x00800000 /uImage'
setenv bootcmd 'setenv bootargs $(bootargs_console); run bootcmd_sata; bootm 0x00800000 0x01100000'
saveenv

Thankyou very much to Martin Michlmayr that has helped me to find the soution to this problem.
Logged
Pages: 1 [2]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!