LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-03-2013, 08:39 AM   #1
biyabani
Member
 
Registered: Mar 2013
Posts: 65

Rep: Reputation: Disabled
Error at the time of kernel booting in FDI3250 board using mtdboot (JFFS2)


Hi,
I am working on ARM9 based LPC3250 controller with linux kernel version 2.6.34.
I have tried to boot the kernel using Mtdboot but at the time of booting it is giving below errors

The commands which i have used and result is as shown below
uboot> printenv bootargs

bootargs=console=ttyS0,115200n8 root=/dev/mtdblock3 rw rootfstype=jffs2 ip=192.168.1.19 ethaddr=00:1a:f1:00:00:00

uboot> run tftpstatickernel
HW MAC address: 00:1A:F1:00:00:00
ENET:auto-negotiation complete#$
ENET:FULL DUPLEX
ENET:100MBase
TFTP from server 192.168.1.10; our IP address is 192.168.1.19
Filename 'uImage'.
Load address: 0x80100000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
###########################################################
done
Bytes transferred = 1963016 (1df408 hex)

uboot> run mtdkernelburn

NAND erase: device 0 offset 0x140000, size 0x400000
Erasing at 0x520000 -- 100% complete.
OK

NAND write: device 0 offset 0x140000, size 0x400000
4194304 bytes written: OK


uboot> setenv bootcmd 'run mtdboot; run mtdkernel; bootm $(loadaddr)'
uboot> saveenv
Saving Environment to NAND...
Erasing Nand...
Erasing at 0x120000 -- 100% complete.
Writing to Nand... done
VTNMS> reset �5Kickstart load here##Kickstart load end

U-Boot 2009.03 (Jul 26 2013 - 16:11:32)

VTNMS---DRAM: 32 MB
NAND: 256 MiB
In: serial
Out: serial
Err: serial
Hit any key to stop autoboot: 0

Loading from NAND 256MiB 3,3V 8-bit, offset 0x140000
Image Name: Linux-2.6.34
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1962952 Bytes = 1.9 MB
Load Address: 80008000
Entry Point: 80008000
## Booting kernel from Legacy Image at 80100000 ...
Image Name: Linux-2.6.34
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1962952 Bytes = 1.9 MB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK

Starting kernel ...

�Linux version 2.6.34 (root@mohan) (gcc version 4.2.2) #115 PREEMPT Tue Sep 3 14:10:55 IST 2013
CPU: ARM926EJ-S [41069264] revision 4 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: Future Designs board with the LPC3250 Microcontroller
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128
Kernel command line: console=ttyS0,115200n8 root=/dev/mtdblock3 rw rootfstype=jffs2 ip=192.168.1.19 ethaddr=00:1a:f1:00:00:00
PID hash table entries: 128 (order: -3, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 32MB = 32MB total
Memory: 28340k/28340k available, 4428k reserved, 0K highmem
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
DMA : 0xffc00000 - 0xffe00000 ( 2 MB)
vmalloc : 0xc2800000 - 0xf0000000 ( 728 MB)
lowmem : 0xc0000000 - 0xc2000000 ( 32 MB)
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
.init : 0xc0008000 - 0xc0027000 ( 124 kB)
.text : 0xc0027000 - 0xc03c9000 (3720 kB)
.data : 0xc03ca000 - 0xc03e8be0 ( 123 kB)
Hierarchical RCU implementation.
NR_IRQS:96
Console: colour dummy device 80x30
Calibrating delay loop... 103.83 BogoMIPS (lpj=519168)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
devtmpfs: initialized
NET: Registered protocol family 16
LPC32XX unique ID: 0005d6dd75701b6e56e474d710b54800
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
NET: Registered protocol family 23
Switching to clocksource lpc32xx_clksrc
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
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.
NetWinder Floating Point Emulator V0.97 (double precision)
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
JFFS2 version 2.2. (NAND) ������ 2001-2006 Red Hat, Inc.
JFS: nTxBlock = 221, nTxLock = 1771
msgmni has been set to 55
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250.0: ttyS0 at MMIO 0x40090000 (irq = 9) is a 16550A
console [ttyS0] enabled
serial8250.0: ttyS1 at MMIO 0x40080000 (irq = 7) is a 16550A
serial8250.0: ttyS2 at MMIO 0x40088000 (irq = 8) is a 16550A
serial8250.0: ttyS3 at MMIO 0x40098000 (irq = 10) is a 16550A
lpc32xx_hsuart.0: ttyTX0 at MMIO 0x40014000 (irq = 26) is a lpc32xx_hsuart
lpc32xx_hsuart.0: ttyTX1 at MMIO 0x40018000 (irq = 25) is a lpc32xx_hsuart
lpc32xx_hsuart.0: ttyTX2 at MMIO 0x4001c000 (irq = 24) is a lpc32xx_hsuart
brd: module loaded
loop: module loaded
NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron NAND 256MiB 3,3V 8-bit)
Creating 4 MTD partitions on "lpc32xx-nand":
0x000000000000-0x000000080000 : "fdi3250-boot"
0x000000080000-0x000000140000 : "fdi3250-uboot"
0x000000140000-0x000000540000 : "fdi3250-kernel"
0x000000540000-0x000010000000 : "fdi3250-jffs2"
lpc_mii_bus: probed
eth0: using MII interface
eth0: LPC mac at 0x31060000 irq 29
eth0: attached PHY driver [Generic PHY] (mii_bushy_addr=0:00, irq=-1)
usbmon: debugfs is not available
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ohci_hcd: failed to connect I2C to ISP1301 USB Transceiver
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
mice: PS/2 mouse device common for all mice
input: lpc32xx-ts as /class/input/input0
rtc-lpc32xx rtc-lpc32xx: rtc core: registered rtc-lpc32xx as rtc0
i2c /dev entries driver
PNX4008-WDT: PNX4008 Watchdog Timer: heartbeat 19 sec
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP cubic registered
NET: Registered protocol family 17
IrCOMM protocol (Dag Brattli)
ssp-pl022 dev:ssp0: ARM PL022 driver, device ID: 0x00041022
pl022: mapped registers from 0x20084000 to c28cc000
CLCD: Toshiba 3.5 inch LCD hardware, QVGA portrait display
Console: switching to colour frame buffer device 40x30
VFP support v0.3: implementor 41 architecture 1 part 10 variant 9 rev 1
rtc-lpc32xx rtc-lpc32xx: setting system clock to 1970-01-01 00:00:00 UTC (0)
IP-Config: Guessing netmask 255.255.255.0
IP-Config: Complete:
device=eth0, addr=192.168.1.19, mask=255.255.255.0, gw=255.255.255.255,
host=192.168.1.19, domain=, nis-domain=(none),
bootserver=255.255.255.255, rootserver=255.255.255.255, rootpath=
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000000: 0x0066 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000004: 0x3054 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000008: 0xc018 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000010: 0x208c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000014: 0x3088 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000018: 0x1000 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000001c: 0x2002 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000020: 0x1048 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000024: 0x2048 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000028: 0x3018 instead
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020000: 0xd800 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020004: 0xb004 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020008: 0x0054 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0002000c: 0xffaf instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020010: 0xa800 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020014: 0xc00d instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020018: 0xd870 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0002001c: 0xb004 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020020: 0xd004 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020024: 0x4000 instead
Further such events for this erase block will not be printed
Empty flash at 0x0003b524 ends at 0x0003b52c
Empty flash at 0x0003b530 ends at 0x0003b534
Empty flash at 0x0003e45c ends at 0x0003e460
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040000: 0x093c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040004: 0x099c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0004000c: 0x8cf4 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040010: 0x0003 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040014: 0x416d instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040018: 0x1688 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0004001c: 0x16e8 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040024: 0x0e48 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040028: 0x0007 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0004002c: 0x8100 instead
Further such events for this erase block will not be printed
Empty flash at 0x000433a8 ends at 0x000433ac
Empty flash at 0x000433c8 ends at 0x000433cc
Empty flash at 0x000434a4 ends at 0x000434a8
Empty flash at 0x0004373c ends at 0x00043740
Empty flash at 0x0004378c ends at 0x00043790


What could be the reason? please give reply.

Thanks & Regards,
MOHAMMAD BIYABANI.
 
Old 09-04-2013, 03:17 AM   #2
geox
Member
 
Registered: Jan 2012
Posts: 42

Rep: Reputation: 2
Basically this means you do not have a valid JFFS2 image in your flash device.
Did you erase the flash properly?
How did you create the JFFS2 image?
Do your images match the 4 MTD partitions, size-wise?
 
Old 09-05-2013, 06:43 AM   #3
biyabani
Member
 
Registered: Mar 2013
Posts: 65

Original Poster
Rep: Reputation: Disabled
Thanks for your reply,

Yes your correct due to invalid JFFS2 image only it has gave that particular error and i have loaded correct image then it is working fine.


Thanks & Regards,
MOHAMMAD BIYABANI.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use other than uart1 for booting in fdi3250 board biyabani Linux - Newbie 1 05-11-2013 01:25 PM
CAN WE USE OTHER THAN UART5 FOR DUMPING THE CODE IN FDI3250 board biyabani Linux - Newbie 2 04-08-2013 04:00 PM


All times are GMT -5. The time now is 02:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration