Part Number: PROCESSOR-SDK-AM335X
Tool/software: Linux
Hello,
I was following the instructions in processors.wiki.ti.com/.../Add-wilink8-to-processor-sdk-3.0 website. I was able to build the boot and rootfs tar.xz files after running the build-wilink.sh script. To flash the tar files to sd card, I run the create-sd.sh script. During the partitioning stage, the partitioning is now done message is shown but later when the script tries to mount the second partition, it fails. The error message is as follows :
mount: wrong fs type, bad option, bad superblock on /dev/sdd2,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
Also, after the tar files are copied, unmounting the partition fails. Here are the logs:
Copying boot partition
Written 95%
Copying rootfs System partition
Written 100%
Syncing...
Un-mount the partitions
umount2: Invalid argument
umount: rootfs: not mounted
The boot partition is mounted correctly and the files are copied. I can verify this by opening the boot partition and can physically see the u-boot.img, uEnv,txt and MLO files. But, the second partition (which should be rootfs) cannot be mounted. If I open GParted and look at the sd card partitions, I see fat32 for partition 1 and unknown filesystem type for partition 2 and there is some unallocated space in the end. I am using 16GB microSD card. The create-sd.sh script is run with sudo command.
I tried booting the BeagleBone Green wireless (BBGW) from the sd card, but, the BBGW does not boot. I can see following messages on serial debug output :
SD/MMC found on device 0
reading boot.scr
** Unable to read file boot.scr **
reading uEnv.txt
** Unable to read file uEnv.txt **
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
switch to partitions #0, OK
mmc1(part 0) is current device
Scanning mmc 1:1...
switch to partitions #0, OK
mmc1(part 0) is current device
SD/MMC found on device 1
switch to partitions #0, OK
mmc1(part 0) is current device
SD/MMC found on device 1
** File not found boot.scr **
** Unrecognized filesystem type **
** Invalid partition 2 **
## Error: "bootcmd_nand0"
The shellscripts for build-wilink.sh were downloaded from gforge.ti.com/.../sdk3-wilink8-am335x-v1.01.tar.gz the link given in the webpage I mentioned before.
Please let me know what I am doiing wrong, how I should proceed.
Thanks in advance