AM335X+ SDK06.00.00.00:
按照如下文档烧写版本时
processors.wiki.ti.com/.../Sitara_Linux_SDK_create_SD_card_script
遇到问题:
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 name
1: 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 partitions
mkdir: 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 partitions
umount2: 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 directories
rm: 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