ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] LTIB + JVM (SUN)


From: Fernando Vilmar Palha
Subject: Re: [Ltib] LTIB + JVM (SUN)
Date: Fri, 16 Apr 2010 14:47:49 -0300
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.9.1.9) Gecko/20100317 Lightning/1.0b1 Thunderbird/3.0.4

Hi Alan and Kevin.

I will go to change "root=/dev/mtdblockN".

How I do this change?

Change Kernel command line:

root=/dev/mtdblock4 rw rootfstype=jffs2 ip=192.168.0.100 ea_ethaddr=00:1a:f1:00:00:00 console=ttyS0,115200n8

Regards.

-- 
Fernando Vilmar Palha
Engenheiro de Computação
Nautec Eletrônica Ltda

Em 16/4/2010 14:04, Kevin Wells escreveu:

 

Hi Fernando,

 

>0x00500000-0x00a00000 : "ea3250-rootfs" (5 MB)
>0x00a00000-0x08000000 : "ea3250-jffs2"   (120 MB)

 

>erase_fs=nand erase 0x500000 0x2100000
>nand_rootfs_sz=0x2100000
>nand_rootfs_off=0x500000

 

>I configured LTIB indicating the new image size of 33,792 KB (34603008 bytes).
>I edited the u-boot to clear the NAND and save the new image.

 

>Kernel command line: root=/dev/mtdblock3 rw rootfstype=jffs2 ip=192.168.0.100 ea_ethaddr=00:1a:f1:00:00:00 console=ttyS0,115200n8

>0x00500000-0x00a00000 : "ea3250-rootfs"

>JFFS2 warning: (291) jffs2_do_read_inode_internal: Truncating ino #300 to 25405453 bytes failed because it only had 3416568 bytes to start with!

 

It looks like your writing your JFFS2 image into the rootfs partition area with an overflow into the jffs2 partition.

When the kernel boots and attempts to mount the rootfs partition, it mounts ok but sees the rootfs partition as too small.

 

For a JFFS2 image, you should boot from /dev/mtdblock4 and use u-boot to write your JFFS2 image to the offset for the larger jffs2 partition. Try the following changes..

 

erase_fs=nand erase 0xa00000 0x2100000
nand_rootfs_sz=0x2100000
nand_rootfs_off=0xa00000

 

Change Kernel command line:

root=/dev/mtdblock4 rw rootfstype=jffs2 ip=192.168.0.100 ea_ethaddr=00:1a:f1:00:00:00 console=ttyS0,115200n8

 

thanks,

Kevin

 

 

Subject: [Ltib] LTIB + JVM (SUN)

 

Hi.

I'm following the tutorial (http://www.imxdev.org/wiki/index.php?title=All_Boards_Java).

I configured LTIB indicating the new image size of 33,792 KB (34603008 bytes).
I edited the u-boot to clear the NAND and save the new image.

erase_fs=nand erase 0x500000 0x2100000
nand_rootfs_sz=0x2100000
nand_rootfs_off=0x500000


What I do not understand is the size of the rootfs on startup.

Creating 5 MTD partitions on "lpc32xx_nand":
0x00000000-0x000e0000 : "ea3250-boot"
0x000e0000-0x00100000 : "ea3250-ubt-prms"
0x00100000-0x00500000 : "ea3250-kernel"
0x00500000-0x00a00000 : "ea3250-rootfs" (5 MB)
0x00a00000-0x08000000 : "ea3250-jffs2"   (120 MB)


Does anyone have any tips?

Regards.

-- 
Fernando Vilmar Palha
Engenheiro de Computação
Nautec Eletrônica Ltda
 


uboot> printenv
bootargs=
bootcmd=run mtdboot
nfsboot=setenv bootargs root=/dev/nfs rw nfsroot=$(serverip):$(rootpath) ip=$(ipaddr) ea_ethaddr=$(ethaddr) console=ttyS0,115200n8;run loadkernel;bootm $(loadaddr)
bootdelay=3
baudrate=115200
ethaddr=00:1a:f1:00:00:00
serverip=192.168.5.88
rootpath=/home/user/ltib/rootfs
netmask=255.255.255.0
bootfile="uImage"
loadaddr=0x80100000
nand_kernel_off=0x100000
nand_kernel_sz=0x1a0000
loadkernel_nand=nboot.jffs2 $(loadaddr) 0x0 $(nand_kernel_off)
loadkernel_tftp=tftpboot $(loadaddr) uImage
loadkernel_usb=usb start;fatload usb 0 $(loadaddr) uImage;usb stop
loadrootfs_tftp=tftpboot $(loadaddr) rootfs.jffs2
loadrootfs_usb=usb start;fatload usb 0 $(loadaddr) rootfs.jffs2;usb stop
erase_env=nand erase 0xe0000 0x20000
mtdboot=setenv bootargs root=/dev/mtdblock3 rw rootfstype=jffs2 ip=$(ipaddr) ea_ethaddr=$(ethaddr) console=ttyS0,115200n8; run loadkernel;bootm $(loadaddr)
update_kernel=run loadkernel; nand erase $(nand_kernel_off) $(nand_kernel_sz); nand write.jffs2 $(loadaddr) $(nand_kernel_off) $(nand_kernel_sz)
update_fs=run loadrootfs; nand erase $(nand_rootfs_off) $(nand_rootfs_sz); nand write.jffs2 $(loadaddr) $(nand_rootfs_off) $(nand_rootfs_sz)
update_uboot_tftp=tftpboot $(loadaddr) u-boot.bin; nand erase 0x60000 0x40000; nand write $(loadaddr) 0x60000 0x40000
erase_kernel=nand erase 0x100000 0x1a0000
ipaddr=192.168.0.100
filesize=183A68
loadkernel=nboot.jffs2 $(loadaddr) 0x0 $(nand_kernel_off)
loadrootfs=usb start;fatload usb 0 $(loadaddr) rootfs.jffs2;usb stop
nand_rootfs_off=0x500000
stdin=serial
stdout=serial
stderr=serial
erase_fs=nand erase 0x500000 0x2100000
nand_rootfs_sz=0x2100000

Environment size: 1641/131068 bytes


uboot> run update_fs
(Re)start USB...
USB:
ISP1301 Vendor ID  : 0x04cc
ISP1301 Product ID : 0x1301
ISP1301 Version ID : 0x0210
scanning bus for devices... 2 USB Device(s) found
       scanning bus for storage devices... 1 Storage Device(s) found
reading rootfs.jffs2
...
...

34603008 bytes read
stopping USB..

NAND erase: device 0 offset 0x500000, size 0x2100000
Skipping bad block at  0x00c80000
Erasing at 0x25e0000 -- 100% complete.
OK

NAND write: device 0 offset 0x500000, size 0x2100000
Skip bad block 0x00c80000
 34603008 bytes written: OK
uboot>

--- RESET ---

Kickstart bootloader started...
Detected NAND Flash ID is: f1ec
Kickstart: reading application data
Kickstart: starting application

Embedded Artists LPC3250 board
Build date: Oct  4 2009 12:16:26
Autoboot in progress, press any key to stop


U-Boot 2009.03-rc1 (Sep 28 2009 - 09:38:20)

DRAM:  64 MB
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0

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

Starting kernel ...

Uncompressing Linux................................................................................. done, booting the kernel.
ÿLinux version 2.6.27.8 (address@hidden) (gcc version 4.1.2) #53 PREEMPT Thu Apr 15 10:48:31 BRT 2010
CPU: ARM926EJ-S [41069264] revision 4 (ARMv5TEJ), cr=00053177
Machine: Embedded Artists LPC3250 OEM board with the LPC3250 Microcontroller
Memory policy: ECC disabled, Data cache writeback
CPU0: D VIVT write-back cache
CPU0: I cache: 32768 bytes, associativity 4, 32 byte lines, 256 sets
CPU0: D cache: 32768 bytes, associativity 4, 32 byte lines, 256 sets
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: root=/dev/mtdblock3 rw rootfstype=jffs2 ip=192.168.0.100 ea_ethaddr=00:1a:f1:00:00:00 console=ttyS0,115200n8
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 61536KB available (2996K code, 223K data, 100K init)
Calibrating delay loop... 133.12 BogoMIPS (lpj=266240)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 288 bytes
NET: Registered protocol family 16
LPC32XX DMA driver
LPC32XX unique ID: 0005d71b1170000007a49018509af000
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 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
NetWinder Floating Point Emulator V0.97 (double precision)
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
msgmni has been set to 120
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
CLCD: Embedded Artists 3.2 inch LCD hardware, QVGA portrait display
Console: switching to colour frame buffer device 30x40
Serial: 8250/16550 driver4 ports, IRQ sharing disabled
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
loop: module loaded
LPC32XX_mii_bus: probed
eth0: LPC32XX mac at 0x31060000 irq 29
eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, irq=-1)
Driver 'sd' needs updating - please use bus_type methods
NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 0 at 0x00000000
Bad eraseblock 100 at 0x00c80000
Creating 5 MTD partitions on "lpc32xx_nand":
0x00000000-0x000e0000 : "ea3250-boot"
0x000e0000-0x00100000 : "ea3250-ubt-prms"
0x00100000-0x00500000 : "ea3250-kernel"
0x00500000-0x00a00000 : "ea3250-rootfs"
0x00a00000-0x08000000 : "ea3250-jffs2"

usbmon: debugfs is not available
I2C device at address 0x2d<6>ISP1301 Vendor ID  : 0x04cc
ISP1301 Product ID : 0x1301
ISP1301 Version ID : 0x0210
usb-ohci usb-ohci: at 0xf3120000, irq 0
usb-ohci usb-ohci: pnx4008 OHCI
usb-ohci usb-ohci: new USB bus registered, assigned bus number 1
usb-ohci usb-ohci: irq 59, io mem 0xf3120000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usb 1-1: new full speed USB device using usb-ohci and address 2
usb 1-1: configuration #1 chosen from 1 choice
scsi0 : SCSI emulation for USB Mass Storage devices
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver libusual
mice: PS/2 mouse device common for all mice
ads7846 spi0.0: touchscreen, irq 64
input: ADS784x Touchscreen 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
mmci-pl18x: DMA buffer(10000 bytes), P:0x83990000, V:0xffc1f000
mmc0: MMCI rev 0 cfg 00 at 0x0000000020098000 irq 15,13
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
ieee80211: 802.11 data/management/control stack, git-1.1.13
ieee80211: Copyright (C) 2004-2005 Intel Corporation <address@hidden>
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:19:56 UTC (1196)
IP-Config: Guessing netmask 255.255.255.0
IP-Config: Complete:
     device=eth0, addr=192.168.0.100, mask=255.255.255.0, gw=255.255.255.255,
     host=192.168.0.100, domain=, nis-domain=(none),
     bootserver=255.255.255.255, rootserver=255.255.255.255, rootpath=
VFS: Mounted root (jffs2 filesystem).
Freeing init memory: 100K
/bin/sh: can't access tty; job control turned off
/ # scsi 0:0:0:0: Direct-Access     Kingston DT 101 II        PMAP PQ: 0 ANSI: 0 CCS
sd 0:0:0:0: [sda] 3919872 512-byte hardware sectors (2007 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] 3919872 512-byte hardware sectors (2007 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Assuming drive cache: write through
 sda: sda1
sd 0:0:0:0: [sda] Attached SCSI removable disk
JFFS2 warning: (291) jffs2_do_read_inode_internal: Truncating ino #300 to 25405453 bytes failed because it only had 3416568 bytes to start with!



--
Esta mensagem foi verificada pelo sistema de antivírus e
acredita-se estar livre de perigo.


--
Esta mensagem foi verificada pelo sistema de antivírus e
acredita-se estar livre de perigo.

--
Esta mensagem foi verificada pelo sistema de antivĂ­rus e
acredita-se estar livre de perigo.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]