Hello!
I am trying to create a custom Debian image. I am reusing the kernel, u-boot, spl etc from the existing TI release. This is how I am doing it.
1. create a file that will act as the disk image.
dd if=/dev/zero of=disk3.img bs=1M count=4096 status=progress
2. use fdisk disk3.img and partition the disk with two partition: one, a Fat32 (partition type 0c) and another an ext4 one. Make the dos partition bootable.
3. mount the partition1 (dos) as loopback device. (losetup to find out a free loop device and then do losetup -fP disk3.img and it then shows up as loopXXp1 and loopXXp2
4. Copy the files from the TI Debian release's boot partition into the p1 device above via the mounted directory and a rootfs into p2.
5. sync, unmount and use dd to write into an SD card.
Unfortunately this SD Card does not boot at all. Nothing shows up in the screen on the serial port. I can mount this SD Card on a host computer and the partition and file system is all fine. I can also read the files fine.
I am wondering if I am doing anything wrong.
I also tried the create-sdcard.sh script which required the sdcard to be inserted during the process. That works fine. I can also manually do the above process on the real sdcard device and it works fine. However, if I create an image file and then do it, it doesn't work. I would really like to have an image file on which further work can happen and also that the image can be shared with other team members. Can you suggest any solutions or spot any issues my process above?
Thanks
Ram