Hi Mark,
On 02/26/2013 11:11 PM, Mark Jackson wrote:
We have a custom made AM335x board I'm working on and I have encountered
a problem when mounting an ubifs image from nand. If I ...
(1) Write an ubifs image to nand
(2) Mount the ubifs image
(3) Repeat step (2)
... this then corrupts the ubifs image.
Below is a full log.
Can anyone help ?
Regards
Mark J.
---
U-Boot SPL 2013.01-00336-g044fbc4-dirty (Feb 26 2013 - 14:07:36)
U-Boot 2013.01-00336-g044fbc4-dirty (Feb 26 2013 - 14:07:36)
I2C: ready
DRAM: 256 MiB
WARNING: Caches not enabled
NAND: 256 MiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO
Rx, HB-ISO Tx, SoftConn)
musb-hdrc: MHDRC RTL version 2.0
musb-hdrc: setup fifo_mode 4
musb-hdrc: 28/31 max ep, 16384/16384 memory
USB Host mode controller at 47401000 using PIO, IRQ 0
Net: cpsw
U-Boot# nandecc hw 2
HW BCH8 selected
U-Boot# mw.b 82000000 ff 81f000
U-Boot# dhcp 82000000 10.0.0.100:/nanobone/rootfs.ubifs
link up on port 0, speed 100, full duplex
BOOTP broadcast 1
*** Unhandled DHCP Option in OFFER/ACK: 46
*** Unhandled DHCP Option in OFFER/ACK: 46
DHCP client bound to address 10.0.0.104
Using cpsw device
TFTP from server 10.0.0.100; our IP address is 10.0.0.104
Filename '/nanobone/rootfs.ubifs'.
Load address: 0x82000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#####################
657.2 KiB/s
done
Bytes transferred = 6029312 (5c0000 hex)
U-Boot# nand erase 200000 4000000
NAND erase: device 0 offset 0x200000, size 0x4000000
Erasing at 0x41e0000 -- 100% complete.
OK
U-Boot# nand write 82000000 200000 81f000
Please try to write with sub command trimffs. The command looks like
nand write.trimffs 82000000 200000 81f000
If not has trimffs sub command, please add CONFIG_CMD_NAND_TRIMFFS into
board configuration file.
Best Regards,
Bo Shen
_______________________________________________
U-Boot mailing list
[email protected]
http://lists.denx.de/mailman/listinfo/u-boot