am3352 boot with kernel & FS on NAND

70 views
Skip to first unread message

gvk51

unread,
Oct 13, 2015, 6:36:33 AM10/13/15
to BeagleBoard
We have a custom board based on AM3352, and the boot sequence is as follows.

I have 2MB SPI flash, where in I have MLO & u-boot

I want to save kernel & filesystem on NAND.

1) I am able to detect NAND in u-boot

U-Boot# nand info

Device 0: nand0, sector size 128 KiB
  Page size       2048 b
  OOB size          64 b
  Erase size    131072 b
  subpagesize      512 b
  options     0x       c
  bbt options 0x    8000

2) I am unable to find nandecc command, is it mandatory to set the ecc type?

3) My NAND layout contains kernel & filesystem, kernel starting from 0x0 to 0x500000, Booting from uSD I am able to write kernel Image to NAND

Kernel version I have is 3.8 & using dts, so what is the Kernel Image I have to use, whether uImage or uImage-dtb.bone-black ?

When I used uImage-dtb.bone-black, it starts booting and stops after the print "Uncompressing Linux... done, booting the kernel."

When I used uImage I see the following message.

U-Boot SPL 2015.07-00260-g7757405-dirty (Oct 07 2015 - 21:17:31)
reading u-boot.img
reading u-boot.img


U-Boot 2015.07-00260-g7757405-dirty (Oct 07 2015 - 21:17:31 +0530)

       Watchdog enabled
I2C:   ready
DRAM:  256 MiB
NAND:  1024 MiB
MMC:   OMAP SD/MMC: 0
SF: Detected M25P16 with page size 256 Bytes, erase size 64 KiB, total 2 MiB
Net:   cpsw
Hit any key to stop autoboot:  0
U-Boot# nand read ${loadaddr} 0x0 0x500000

NAND read: device 0 offset 0x0, size 0x500000
 5242880 bytes read: OK
U-Boot# bootm ${loadaddr}
## Booting kernel from Legacy Image at 82000000 ...
   Image Name:   Linux-3.8.13-00774-g18e2dc2
   Created:      2015-10-12   6:58:20 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4363160 Bytes = 4.2 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

Error: unrecognized/unsupported machine ID (r1 = 0x00000e05).

Available machine support:

ID (hex)    NAME
ffffffff    Generic OMAP4 (Flattened Device Tree)
ffffffff    Generic AM33XX (Flattened Device Tree)
ffffffff    Generic OMAP3-GP (Flattened Device Tree)
ffffffff    Generic OMAP3 (Flattened Device Tree)
0000060a    OMAP3 Beagle Board
00000a9d    IGEP OMAP3 module
00000928    IGEP v2 board
00000ae7    OMAP4 Panda board

Please check your kernel config and/or bootloader.

Please give information which type of kernle Image I have to write to NAND, should I need to keep another copy of kernel Image ??

How to add NAND device & partitions in kernel dts file, so that it is detected by kernle?

Please help at the earliest.

Thanks & Regards,

gvk51.

Reply all
Reply to author
Forward
Message has been deleted
0 new messages