QiyangContact usnews › 335X Linux FAQ

335X Linux FAQ

Posted 2014/06/26 08:45 AM by Qiyang views: 1491

1.Q:How to modify 335x usb OTG to 335x usb Host?

A:board level file [board-omap2], modify [OTG]to [HOST].

static struct omap_musb_board_data musb_board_data = <>

.interface_type = MUSB_INTERFACE_ULPI,

/*

* mode[0:3] = USB0PORT's mode

* mode[4:7] = USB1PORT's mode

* AM335X beta EVM has USB0 in OTG mode and USB1 in host mode.

*/

.mode = (MUSB_HOST << 4) | MUSB_HOST,

.power= 500,

.instances= 1,

;

2. Q: How to erase [dataflash] ?

A: sf probe 0;sf erase 0 +80000

nand erase 0x2C0000 0x2FFFFF;

3.Q: Why QT program could show the Chinese when booting manually, but it could not show Chinese when automatic starting.

A: The question may because of the Absolut Path and Relative Path, please use Absolut Path in auto-start.

4.Q: Where is [ftp] root directory in 9260 Linux?

A: It is in [/var/ftp]。

5.Q: How to set IAC335X back board's dial-up ?

A:Serial Port Method:1000 0000 R52 Resistance is not welded. Others are welded.

Nand Method:0100 1000 R53 R56 are not welded, others are welded.

SD Card Method: R52 R53 R54 R56 are not welded, others are welded.

6.Q:What about file system making command ?

A: sudo mkfs.ubifs -r rootfs/ -F -o ubifs.img -m 2048 -e 126976 -c 1580

sudo ubinize -o ubi.img -m 2048 -p 128KiB -s 512 -O 2048 ubinize.cfg

7.Q: How to Compile kernel in am335x ?

A: make ARCH=arm CROSS_COMPILE=arm-eabi- distclean

make ARCH=arm CROSS_COMPILE=arm-eabi- am335x_evm_android_defconfig

make ARCH=arm CROSS_COMPILE=arm-eabi- uImage

8.Q: How to compile [uboot]in am335x ?

A:make CROSS_COMPILE=arm-eabi- distclean

make ARCH=arm CROSS_COMPILE=arm-eabi- am335x_evm_config

make ARCH=arm CROSS_COMPILE=arm-eabi-

9.Q: How to compile file system in am335x?

A: make TARGET_PRODUCT=am335xevm clean

make TARGET_PRODUCT=am335xevm OMAPES=4.x -j4

10.Q: How to make file sytem ?

A: mkdir android_rootfs

cp -r root/* android_rootfs

cp -r system android_rootfs

../../../../build/tools/mktarball.sh ../../../host/linux-x86/bin/fs_get_stats android_rootfs . rootfs rootfs.tar.bz2

../../../../build/tools/mktarball.sh ../../../host/linux-x86/bin/fs_get_stats android_rootfs . rootfs rootfs.tar.bz2

cp rootfs.tar.bz2 ~/work

mkdir android_rootfs

tar –xjvf rootfs.tar.bz2 –C android_rootfs

mkfs.ubifs -r android_rootfs/ -F -m 2048 -e 126976 -c 1580 -o ubifs.img

ubinize -o ubi.img -m 2048 -p 128KiB -s 512 -O 2048 ubinize.cfg