Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Issues with AT91SAM9G25 Boot based off linux4sam instruction
PostPosted: Wed Jan 04, 2012 6:32 pm 
Offline

Joined: Wed Jan 04, 2012 6:24 pm
Posts: 3
Hi,

First I apologize if this is posted elsewhere, I'm sure its a simple problem but I cant seem to find my answer.

I have followed the instructions to boot linux on my AT91SAM9G25ek board but it keeps kernel panic'ing as follows

These are the instructions i have been using: http://www.at91.com/linux4sam/bin/view/ ... SAM9x5Page

Code:
Start AT91Bootstrap...
Init DDR... Done!
Loading 1-Wire info...
Enumerate all roms:
Rom#0x0: 0xde 0x0 0x0 0x3 0x7 0x1c 0x84 0x2d
Rom#0x1: 0xd3 0x0 0x0 0x3 0x21 0x7e 0x6e 0x2d
Done, 0x2 1-wire chips found!

Board name: SAM9G25-CM [B1]; Vendor name: EMBEST
Board name: SAM9x5-EK [B0]; Vendor name: FLEX
sn: 0x4000023;   rev: 0x8401
Downloading image...
chip id: 0x2cda
Copy 0x50000 bytes from 0x40000 to 0x26f00000
Done!


U-Boot 2010.06 (Jun 23 2011 - 16:05:54)

DRAM:  128 MiB
NAND:  256 MiB
*** Warning - bad CRC or NAND, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   macb0
macb0: Starting autonegotiation...
macb0: Autonegotiation complete
macb0: link up, 100Mbps full-duplex (lpa: 0xcde1)
Hit any key to stop autoboot:  0

NAND read: device 0 offset 0x200000, size 0x250000
 2424832 bytes read: OK
## Booting kernel from Legacy Image at 22000000 ...
   Image Name:   Angstrom/2.6.39/at91sam9x5ek
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2351612 Bytes = 2.2 MiB
   Load Address: 20008000
   Entry Point:  20008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Linux version 2.6.39 (nferre@RFOLXTS02.rfo.atmel.com) (gcc version 4.5.3 20110223 (prerelease) (GCC) ) #1 Wed Jul 6 15:04:11 CEST 2011
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: Atmel AT91SAM9X5-EK
Memory policy: ECC disabled, Data cache writeback
Clocks: CPU 400 MHz, master 133 MHz, main 12.000 MHz
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
Kernel command line: mem=128M console=ttyS0,115200 mtdparts=atmel_nand:8M(bootstrap/uboot/kernel)ro,-(rootfs) root=/dev/mtdblock1 rw rootfstype=ubifs ubi.mtd=1 root=ubi0:rootfs
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 128MB = 128MB total
Memory: 124972k/124972k available, 6100k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xff000000 - 0xffe00000   (  14 MB)
    vmalloc : 0xc8800000 - 0xfee00000   ( 870 MB)
    lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .init : 0xc0008000 - 0xc002a000   ( 136 kB)
      .text : 0xc002a000 - 0xc0489d5c   (4480 kB)
      .data : 0xc048a000 - 0xc04baee0   ( 196 kB)
NR_IRQS:192
AT91: 128 gpio irqs in 4 banks
Console: colour dummy device 80x30
console [ttyS0] enabled
Calibrating delay loop... 199.06 BogoMIPS (lpj=995328)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
devtmpfs: initialized
NET: Registered protocol family 16
AT91: CM rev B and higher
AT91: EK rev B and higher
AT91: Power Management (with slow clock mode)
AT91: Starting after user reset
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
i2c-gpio i2c-gpio.0: using pins 62 (SDA) and 63 (SCL)
at_hdmac at_hdmac.0: Atmel AHB DMA Controller ( cpy slave ), 8 channels
at_hdmac at_hdmac.1: Atmel AHB DMA Controller ( cpy slave ), 8 channels
Advanced Linux Sound Architecture Driver Version 1.0.24.
Switching to clocksource tcb_clksrc
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
msgmni has been set to 244
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
io scheduler noop registered (default)
atmel_usart.0: ttyS0 at MMIO 0xfefff200 (irq = 1) is a ATMEL_SERIAL
cfg80211: Calling CRDA to update world regulatory domain
atmel_usart.1: ttyS1 at MMIO 0xf801c000 (irq = 5) is a ATMEL_SERIAL
brd: module loaded
loop: module loaded
ssc ssc.0: Atmel SSC device at 0xc8870000 (irq 28)
atmel_nand atmel_nand: Using dma0chan0 for DMA transfers.
ONFI flash detected
ONFI param page 0 valid
NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron MT29F2G08AAD)
atmel_pmecc_init_params
Scanning device for bad blocks
Bad eraseblock 1958 at 0x00000f4c0000
2 cmdlinepart partitions found on MTD device atmel_nand
Creating 2 MTD partitions on "atmel_nand":
0x000000000000-0x000000800000 : "bootstrap/uboot/kernel"
0x000000800000-0x000010000000 : "rootfs"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    126976 bytes
UBI: smallest flash I/O unit:    2048
UBI: VID header offset:          2048 (aligned 2048)
UBI: data offset:                4096
UBI error: process_eb: bad image sequence number 581122795 in PEB 1921, expected 1334101648
slab error in kmem_cache_destroy(): cache `ubi_scan_leb_slab': Can't free all objects
[<c002ece0>] (unwind_backtrace+0x0/0xe0) from [<c0087d00>] (kmem_cache_destroy+0x88/0xf0)
[<c0087d00>] (kmem_cache_destroy+0x88/0xf0) from [<c01d6c50>] (ubi_scan+0x8c4/0x980)
[<c01d6c50>] (ubi_scan+0x8c4/0x980) from [<c01ceda8>] (ubi_attach_mtd_dev+0x41c/0x9fc)
[<c01ceda8>] (ubi_attach_mtd_dev+0x41c/0x9fc) from [<c001c394>] (ubi_init+0x1cc/0x2cc)
[<c001c394>] (ubi_init+0x1cc/0x2cc) from [<c002a4d4>] (do_one_initcall+0x90/0x168)
[<c002a4d4>] (do_one_initcall+0x90/0x168) from [<c000893c>] (kernel_init+0x90/0x13c)
[<c000893c>] (kernel_init+0x90/0x13c) from [<c002b754>] (kernel_thread_exit+0x0/0x8)
UBI error: ubi_init: cannot attach mtd1
CAN device driver interface
macb macb.0: invalid hw address, using random
macb macb.0: eth0: Features changed: 0x00004800 -> 0x00004000
MACB_mii_bus: probed
eth0: Atmel MACB at 0xf802c000 irq 24 (66:08:a2:19:84:73)
eth0: attached PHY driver [Davicom DM9161A] (mii_bus:phy_addr=0:00, irq=-1)
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
atmel-ehci atmel-ehci: Atmel EHCI UHP HS
atmel-ehci atmel-ehci: new USB bus registered, assigned bus number 1
atmel-ehci atmel-ehci: irq 22, io mem 0x00700000
atmel-ehci atmel-ehci: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 3 ports detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
at91_ohci at91_ohci: AT91 OHCI
at91_ohci at91_ohci: new USB bus registered, assigned bus number 2
at91_ohci at91_ohci: irq 22, io mem 0x00600000
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 3 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver libusual
atmel_usba_udc atmel_usba_udc: MMIO registers at 0xf803c000 mapped at c88c6000
atmel_usba_udc atmel_usba_udc: FIFO at 0x00500000 mapped at c8900000
qt1070 0-001b: can not read register, returned -6
qt1070 0-001b: ID -6 not supported
at91_rtc at91_rtc: rtc core: registered at91_rtc as rtc0
AT91 Real Time Clock driver.
i2c /dev entries driver
Linux media interface: v0.10
lirc_dev: IR Remote Control driver registered, major 250
IR NEC protocol handler initialized
IR RC5(x) protocol handler initialized
IR RC6 protocol handler initialized
IR JVC protocol handler initialized
IR Sony protocol handler initialized
IR RC5 (streamzap) protocol handler initialized
IR LIRC bridge handler initialized
Linux video capture interface: v2.00
camera 0-0: Probing 0-0
ov2640 0-0030: Product ID error fa:fa
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
asoc: wm8731-hifi <-> atmel-ssc-dai.0 mapping ok
ASoC: at91sam9x5ek_init ok
ALSA device list:
  #0: AT91SAM9X5
nf_conntrack version 0.5.0 (1952 buckets, 7808 max)
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP cubic registered
NET: Registered protocol family 17
can: controller area network core (rev 20090105 abi 8)
NET: Registered protocol family 29
can: raw protocol (rev 20090105)
lib80211: common routines for IEEE802.11 drivers
Registering the dns_resolver key type
at91_rtc at91_rtc: setting system clock to 2011-06-30 06:58:29 UTC (1309417109)
atmel_mci atmel_mci.0: Using dma0chan1 for DMA transfers
atmel_mci atmel_mci.0: Atmel MCI controller at 0xf0008000 irq 12, 1 slots
atmel_mci atmel_mci.1: Using dma1chan0 for DMA transfers
atmel_mci atmel_mci.1: Atmel MCI controller at 0xf000c000 irq 26, 1 slots
VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0)
Please append a correct "root=" boot option; here are the available partitions:
1f00            8192 mtdblock0  (driver?)
1f01          253952 mtdblock1  (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[<c002ece0>] (unwind_backtrace+0x0/0xe0) from [<c03383b4>] (panic+0x50/0x170)
[<c03383b4>] (panic+0x50/0x170) from [<c0008d20>] (mount_block_root+0x234/0x284)
[<c0008d20>] (mount_block_root+0x234/0x284) from [<c0008f50>] (prepare_namespace+0x88/0x1c0)
[<c0008f50>] (prepare_namespace+0x88/0x1c0) from [<c00089ac>] (kernel_init+0x100/0x13c)
[<c00089ac>] (kernel_init+0x100/0x13c) from [<c002b754>] (kernel_thread_exit+0x0/0x8)


Im using the suggested boot.bin, u-boot.bin, kernel image and the Angstrom FS provided.

The following are my u-boot parameters

Code:
U-Boot> print
bootargs=mem=128M console=ttyS0,115200 mtdparts=atmel_nand:8M(bootstrap/uboot/kernel)ro,-(rootfs) root=/dev/mtdblock1 rw rootfstype=ubifs ubi.mtd=1 root=ubi0:rootfs
bootcmd=nand read.jffs2 0x22000000 0x200000 0x250000; bootm 0x22000000
bootdelay=1
baudrate=115200
ethact=macb0


I have the u-boot at 0x40000, Kernel at 0x200000 and FS at 0x800000


Top
 Profile  
 
 Post subject: Re: Issues with AT91SAM9G25 Boot based off linux4sam instruc
PostPosted: Mon Feb 20, 2012 2:36 am 
Offline

Joined: Fri Jun 22, 2007 10:41 am
Posts: 10
Hi,
I have the same issue with G15. Did you solve it?


Top
 Profile  
 
 Post subject: Re: Issues with AT91SAM9G25 Boot based off linux4sam instruc
PostPosted: Mon Apr 30, 2012 12:22 pm 
Offline

Joined: Wed Feb 14, 2007 11:17 am
Posts: 79
Hi,

While flashing the UBI rootfs with SAM-BA, make sure to select the "Trimffs" option in the "PMECC parameters" dialog box as described here:

http://www.at91.com/linux4sam/bin/view/ ... ing_SAM_BA

Best regards,


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: