TI中文支持网
TI专业的中文技术问题搜集分享网站

请教ti工程师:今天用SD卡烧写版本遇到一个问题,期待您们的回复~~谢谢!

AM335X+ SDK06.00.00.00:

按照如下文档烧写版本时
http://processors.wiki.ti.com/index.php/Sitara_Linux_SDK_create_SD_card_script#Installing_SD_Card_Content

遇到问题:
1.uEnv.txt文件是怎么获取的?

Select Boot Partition
You will now be prompted to provide a path to the location of the boot partition files. The prompt will explain the requirements of the files to be placed at the path, but the basic options are:
1. Point to a tarball containing all of the files you want placed on the boot partition. This would include the boot loaders and the kernel image as well as any optional files like uEnv.txt

2.按照附件中的步骤操作时报错,是boot区没有uEnv.txt文件的原因吗?
log如下:

root@ubuntu:/usr/local/ti-sdk-am335x-evm-06.00.00.00# sudo ./bin/create-sdcard.sh

################################################################################

This script will create a bootable SD card from custom or pre-built binaries.

The script must be run with root permissions and from the bin directory of
the SDK

Example:
$ sudo ./create-sdcard.sh

Formatting can be skipped if the SD card is already formatted and
partitioned properly.

################################################################################

Availible Drives to write images to:

# major minor size name1: 8 16 3813376 sdb
Enter Device Number or n to exit: 1
sdb was selected

Unmounting the sdb drives
unmounted /dev/sdb1
unmounted /dev/sdb2
Current size of sdb1 72261 bytes
Current size of sdb2 3727080 bytes

################################################################################

Detected device has 2 partitions already

Re-partitioning will allow the choice of 2 or 3 partitions

################################################################################

Would you like to re-partition the drive anyways [y/n] : n

Skipping partitioning

################################################################################

Partitioning is now done
Continue to install filesystem or select 'n' to safe exit

**Warning** Continuing will erase files any files in the partitions

################################################################################

Would you like to continue? [y/n] : y

Mount the partitionsmkdir: cannot create directory `rootfs': File exists
Emptying partitions

Syncing….

################################################################################

Choose file path to install from

1 ) Install pre-built images from SDK
2 ) Enter in custom boot and rootfs file paths

################################################################################

Choose now [1/2] : 2

################################################################################

For Boot partition

If files are located in Tarball write complete path including the file name.
e.x. $: /home/user/MyCustomTars/boot.tar.gz

If files are located in a directory write the directory path
e.x. $: /ti-sdk/board-support/prebuilt-images/

and the beginning of the files should be labeled with MLO, u-boot, uImage
i.e. test_MLO_image must be labeled as MLO_test_image

NOTE: Not all platforms will have an MLO file and this file can
be ignored for platforms that do not support an MLO
################################################################################

Enter path for Boot Partition : /mnt/hgfs/ubuntu_share/temp

Directory exists

This directory contains:
MLO u-boot.img uImage

Is this correct? [y/n] : y

################################################################################

For Rootfs partition

If files are located in Tarball write complete path including the file name.
e.x. $: /home/user/MyCustomTars/rootfs.tar.gz

If files are located in a directory write the directory path
e.x. $: /ti-sdk/targetNFS/

################################################################################

Enter path for Rootfs Partition : /usr/local/ti-sdk-am335x-evm-06.00.00.00/targetNFS

This directory contains:
bin boot dev etc home lib media mnt opt proc sbin Settings srv sys test tmp usr var www

Is this correct? [y/n] : y

################################################################################

For Rootfs partition

If files are located in Tarball write complete path including the file name.
e.x. $: /home/user/MyCustomTars/rootfs.tar.gz

If files are located in a directory write the directory path
e.x. $: /ti-sdk/targetNFS/

################################################################################

Enter path for Rootfs Partition : /usr/local/ti-sdk-am335x-evm-06.00.00.00/targetNFS

This directory contains:
bin boot dev etc home lib media mnt opt proc sbin Settings srv sys test tmp usr var www

Is this correct? [y/n] : y

################################################################################

Copying files now… will take minutes

################################################################################

Copying boot partition

MLO copied

u-boot.img copied

uImage copied

Copying rootfs System partition
now xxxx is : /usr/local/ti-sdk-am335x-evm-06.00.00.00/targetNFS
489560 / 489072 copied

Syncing…

Un-mount the partitionsumount2: Device or resource busy
umount: /usr/local/ti-sdk-am335x-evm-06.00.00.00/rootfs: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
umount2: Device or resource busy
Remove created temp directoriesrm: cannot remove `rootfs': Device or resource busy
Operation Finished
cp: cannot create regular file `rootfs/var/lib/opkg/info/lighttpd.postinst': No such file or directory
cp: cannot create regular file `rootfs/var/lib/opkg/info/dosfstools.control': No such file or directory
cp: cannot create regular file `rootfs/var/lib/opkg/info/gst-plugins-bad-apps.control': No such file or directory
cp: cannot create regular file `rootfs/var/lib/opkg/info/gst-plugins-base-glib.control': No such file or directory
cp: cannot create regular file `rootfs/var/lib/opkg/info/amsdk-av-files.list': No such file or directory
cp: cannot create regular file `rootfs/var/lib/opkg/info/e2fsprogs-e2fsck.control': No such file or directory
cp: cannot create regular file `rootfs/var/lib/opkg/info/gdbserver.control': No such file or directory
cp: cannot create regular file `rootfs/var/lib/opkg/info/gst-plugins-good-rtsp.list': No such file or directory
cp: cannot create regular file `rootfs/var/lib/opkg/info/matrix-gui-usb-demos.list': No such file or directory
cp: cannot create regular file `rootfs/var/lib/opkg/info/pulseaudio-module-native-protocol-unix.control': No such file or directory
cp: cannot create regular file `rootfs/var/lib/opkg/info/e2fsprogs-mke2fs.control': No such file or directory
cp: cannot create regular file `rootfs/var/lib/opkg/info/screenshot.list': No such file or directory
cp: cannot create regular file `rootfs/var/lib/opkg/info/libqtteste4.list': No such file or directory
cp: cannot create regular file `rootfs/var/lib/opkg/info/libtasn1-3.control': No such file or directory
cp: cannot create regular file `rootfs/var/lib/opkg/info/libsdl-1.2-0.list': No such file or directory
cp: cannot create regular file `rootfs/var/lib/opkg/info/libavformat53.control': No such file or directory
cp: cannot create regular file `rootfs/var/lib/opkg/info/gst-plugins-bad-videofiltersbad.list': No such file or directory
cp: cannot create regular file `rootfs/var/lib/opkg/info/lighttpd-module-indexfile.control': No such file or directory
cp: cannot create regular file `rootfs/var/lib/opkg/info/libudev0.postinst': No such file or directory
cp: cannot create regular file `rootfs/var/lib/opkg/info/gst-plugins-bad-jp2kdecimator.control': No such file or directory
cp: cannot create regular file `rootfs/var/lib/opkg/info/libjson0.control': No such file or directory
cp: cannot create regular file `rootfs/var/lib/opkg/info/libphonone4.control': No such file or directory
cp: cannot create regular file `rootfs/var/lib/opkg/info/libtic5.postinst': No such file or directory
cp: cannot create regular file `rootfs/var/lib/opkg/info/libusb-1.0-0.postinst': No such file or directory
cp: cannot create regular file `rootfs/var/lib/opkg/info/gst-plugins-good-rtpmanager.control': No such file or directory
cp: cannot create regular file `rootfs/var/lib/opkg/info/alsa-utils-alsactl.control': No such file or directory
cp: cannot create regular file `rootfs/var/lib/opkg/info/pulseaudio-module-stream-restore.list': No such file or directory
cp: cannot create regular file `rootfs/var/lib/opkg/info/gst-plugins-good-glib.list': No such file or directory
cp: cannot create regular file `rootfs/var/lib/opkg/info/gst-plugins-bad-mve.control': No such file or directory
cp: cannot create regular file `rootfs/var/lib/opkg/info/matrix-gui.control': No such file or directory
cp: cannot create regular file `rootfs/var/lib/opkg/info/bluez4.list': No such file or directory
cp: cannot create regular file `rootfs/var/lib/opkg/info/libgstfft-0.10-0.postinst': No such file or directory
cp: cannot create regular file `rootfs/var/lib/opkg/info/sysvinit.postinst': No such file or directory
cp: cannot create regular file `rootfs/var/lib/opkg/info/libqtsvge4.control': No such file or directory
cp: cannot create regular file `rootfs/var/lib/opkg/info/gst-plugins-bad-legacyresample.control': No such file or directory
cp: cannot create regular file `rootfs/var/lib/opkg/info/libsamplerate0.postinst': No such file or directory
cp: cannot create regular file `rootfs/var/lib/opkg/info/pulseaudio-module-loopback.list': No such file or directory
cp: cannot create regular file `rootfs/var/lib/opkg/info/sysvinit-inittab.conffiles': No such file or directory
cp: cannot create regular file `rootfs/var/lib/opkg/info/gst-plugins-base-audiorate.control': No such file or directory
cp: cannot create regular file `rootfs/var/lib/opkg/info/udev.prerm': No such file or directory
cp: cannot create regular file `rootfs/var/lib/opkg/info/ltp-ddt-legacy.control': No such file or directory
cp: cannot create regular file `rootfs/var/lib/opkg/in

Jian Zhou:

你是改过脚本,把解压那部分去掉了么?

Yaoming Qin:

您在第一步的时候,选择了不用分区,这一步,最好选择用我们的工具分区。

user4131006:

回复 Jian Zhou:

to Jian Zhou:

首先感谢Jian Zhou您的及时回复,

“你是改过脚本”——请问下 这句话中的脚本指的是 uEnv.txt吗?解压缩指的又是什么?rootfs 路径下的文件是 

/usr/local/ti-sdk-am335x-evm-06.00.00.00/targetNFS,里面没有压缩过的?

Yaoming Qin:

回复 user4131006:

jialei xu

to Jian Zhou:

首先感谢Jian Zhou您的及时回复,

“你是改过脚本”——请问下 这句话中的脚本指的是 uEnv.txt吗?解压缩指的又是什么?rootfs 路径下的文件是 

/usr/local/ti-sdk-am335x-evm-06.00.00.00/targetNFS,里面没有压缩过的?

leo chen:

回复 user4131006:

感觉像是SD卡分区的问题,如果已经分区好的话,可以直接把文件系统拷贝进取

Un-mount the partitions umount2: Device or resource busyumount: /usr/local/ti-sdk-am335x-evm-06.00.00.00/rootfs: device is busy.(In some cases useful info about processes that usethe device is found by lsof(8) or fuser(1))umount2: Device or resource busyRemove created temp directories rm: cannot remove `rootfs': Device or resource busy

Jian Zhou:

回复 user4131006:

我指的是create-sdcard.sh这个脚本,文件系统的拷贝,默认是把rootfs.tar.gz解压到SD卡的第二个分区,就是ext3分区。

user4131006:

回复 Yaoming Qin:

我采用的就是 ti分区工具,因为上次就分区好了,所以这次操作就skip这步了,我又从头作了遍,还有如下的疑问,还请Yaoming Qin和TI的其他大牛赐教:

1).sd Card的这种启动方式是已经ok的方式的吧?还请共享下你们自己的uEnv.txt 脚本给我们用下.还有个小疑问: uEnv.txt 脚本是否是必须有的??因为我在sd card烧写时 采用“Choose Install Pre-built Images”的时候,我查看boot partion目录下只有 uImage MLO u-boot.img,仅靠这三个文件板子启动也没问题,

2). root System partion的文件系统 你们在测试“SD Card Using Custom Images”的时候copy的是哪个文件系统?是sdk code中修改的 \ti-sdk-am335x-evm-06.00.00.00\targetNFS 这个目录文件吗,貌似这个目录下的copy进去,板子启动有问题:

[ 1.834838] EXT3-fs (mmcblk0p2): recovery required on readonly filesystem[ 1.841979] EXT3-fs (mmcblk0p2): write access will be enabled during recovery[ 1.919494] mmc1: new high speed MMC card at address 0001[ 1.926300] mmcblk1: mmc1:0001 MMC04G 3.60 GiB [ 1.931701] mmcblk1boot0: mmc1:0001 MMC04G partition 1 2.00 MiB[ 1.938232] mmcblk1boot1: mmc1:0001 MMC04G partition 2 2.00 MiB[ 1.945739] mmcblk1: p1 p2[ 1.951049] mmcblk1boot1: unknown partition table[ 1.957977] mmcblk1boot0: unknown partition table[ 23.847564] kjournald starting. Commit interval 5 seconds[ 23.853393] EXT3-fs (mmcblk0p2): recovery complete[ 24.463287] EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode[ 24.470520] VFS: Mounted root (ext3 filesystem) readonly on device 179:2.[ 24.477935] Freeing init memory: 232K[ 24.481872] Kernel panic – not syncing: No init found. Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.[ 24.494873] Backtrace: [ 24.497436] [<c0017dbc>] (dump_backtrace+0x0/0x10c) from [<c03c05b8>] (dump_stack+0x18/0x1c)[ 24.506286] r6:c004203c r5:c048ea68 r4:c05bda08 r3:c057d58c[ 24.512207] [<c03c05a0>] (dump_stack+0x0/0x1c) from [<c03c07f4>] (panic+0x64/0x194)[ 24.520233] [<c03c0790>] (panic+0x0/0x194) from [<c03c057c>] (init_post+0xac/0xd0)[ 24.528137] r3:df02bc00 r2:00000006 r1:00000080 r0:c048ea68[ 24.534088] r7:00000013[ 24.536743] [<c03c04d0>] (init_post+0x0/0xd0) from [<c051f900>] (kernel_init+0xf8/0x120)[ 24.545196] r4:c05587ac r3:00000112[ 24.548950] [<c051f808>] (kernel_init+0x0/0x120) from [<c004203c>] (do_exit+0x0/0x65c)

赞(0)
未经允许不得转载:TI中文支持网 » 请教ti工程师:今天用SD卡烧写版本遇到一个问题,期待您们的回复~~谢谢!
分享到: 更多 (0)