* Regarding nandwrite issue for huge files ?
@ 2010-02-12 7:02 R Arun Kumar
2010-02-12 7:30 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: R Arun Kumar @ 2010-02-12 7:02 UTC (permalink / raw)
To: barebox
[-- Attachment #1.1: Type: text/plain, Size: 3297 bytes --]
Hai,
I am able to successfully port the barebox for my custom IMX31 board and
also boot linux on the same.
I am trying to write the uImage and the root.jffs2 file from barebox and
found that even though uImage is written successfully and able to boot from
nand flash also. The nand file write for files more than 3.5 mega size is
not able to write and the barebox loader is hanged.
Please help or suggest what could be the issue ?
Arun
my log
===============================
barebox 2009.12.0 (Feb 12 2010 - 12:19:11)
Board: Phytec phyCORE-i.MX31
cfi_probe: cfi_flash base: 0xa0000000 size: 0x02000000
NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB
3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 2046 at 0x0ffc0000
Bad eraseblock 2047 at 0x0ffe0000
got MAC address from EEPROM: 00:08:EE:01:86:71
Malloc space: 0x87b00000 -> 0x87f00000 (size 4 MB)
Stack space : 0x87af8000 -> 0x87b00000 (size 32 kB)
envfs: wrong magic on /dev/env0
no valid environment found on /dev/env0. Using default environment
running /env/bin/init...
Hit any key to stop autoboot: 3
type update_kernel nand|nor [<imagename>] to update kernel into flash
type update_root nand|nor [<imagename>] to update rootfs into flash
barebox:/ devinfo
devices:
|----imx_serial0
|----cs0
|----ramfs0
|----devfs0
|----mem0 (defaultenv)
|----mem1 (mem)
|----cfi_flash0 (nor0, self0, env0, nor0.barebox, nor0.bareboxenv,
nor0.kernel, nor0.root)
|----mem2 (sram0)
|----imx_nand0
|----nand0 (nand0, nand_oob0, nand0.kernel, nand0.root)
|----smc911x0
|----miiphy0 (phy0)
|----eth0
|----mem3 (ram0)
drivers:
imx_serial
ramfs
devfs
smc911x
miiphy
imx_nand
cfi_flash
mem
barebox:/ erase /dev/nand0.kernel.bb
barebox:/
barebox:/
barebox:/ tftp uImage_080210 /dev/nand0.kernel.bb
phy0: Link is up - 100/Full
TFTP from server 192.168.50.247; our IP address is 192.168.50.182
Filename 'uImage_080210'.
Loading: *\b#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
###############################
done
Bytes transferred = 1822080 (1bcd80 hex)
barebox:/
barebox:/
barebox:/
barebox:/
barebox:/ erase /dev/nand0.root.bb
Skipping bad block at 0x0ffc0000
Skipping bad block at 0x0ffe0000
barebox:/
barebox:/
barebox:/
barebox:/ tftp root-pcm037.jffs2 /dev/nand0.root.bb
phy0: Link is up - 100/Full
TFTP from server 192.168.50.247; our IP address is 192.168.50.182
Filename 'root-pcm037.jffs2'.
Loading: *\b#################################################################
#################################################################
#################################################################
############################################################T #####
#################################################################
#################################################################
#####################(hanged)
===============================
[-- Attachment #1.2: Type: text/html, Size: 3726 bytes --]
[-- Attachment #2: Type: text/plain, Size: 149 bytes --]
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Regarding nandwrite issue for huge files ?
2010-02-12 7:02 Regarding nandwrite issue for huge files ? R Arun Kumar
@ 2010-02-12 7:30 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2010-02-12 7:30 UTC (permalink / raw)
To: R Arun Kumar; +Cc: barebox
Hi Arun,
On Fri, Feb 12, 2010 at 12:32:19PM +0530, R Arun Kumar wrote:
> Hai,
>
> I am able to successfully port the barebox for my custom IMX31 board and
> also boot linux on the same.
> I am trying to write the uImage and the root.jffs2 file from barebox and
> found that even though uImage is written successfully and able to boot from
> nand flash also. The nand file write for files more than 3.5 mega size is
> not able to write and the barebox loader is hanged.
>
> Please help or suggest what could be the issue ?
I don't know what is going wrong here. I often use this driver with
files > 3.5Mb, works for me. Can you add a #define DEBUG in
drivers/nand/nand.c and see if it's always the same location that fails?
You could also make your kernel partition a bit bigger so that the
rootfs starts at another place and see if it's still the same location
that fails.
Have you tried lowering the Nand clock?
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-02-12 7:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-12 7:02 Regarding nandwrite issue for huge files ? R Arun Kumar
2010-02-12 7:30 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox