Hi Robert,
Thanks. I'm not sure that I did this properly.
Anyway here is my session with sd-card:
pavel@ALABAMA:~/u-boot2$ sudo dd if=./u-boot/MLO of=${DISK} count=1 seek=1
bs=128k
0+1 records in
0+1 records out
92388 bytes (92 kB, 90 KiB) copied, 0,0268951 s, 3,4 MB/s
pavel@ALABAMA:~/u-boot2$ sudo dd if=./u-boot/u-boot.img of=${DISK} count=2
seek=1 bs=384k
1+1 records in
1+1 records out
474656 bytes (475 kB, 464 KiB) copied, 0,0415703 s, 11,4 MB/s
pavel@ALABAMA:~/u-boot2$ sudo sfdisk ${DISK} <<-__EOF__
> 4M,,L,*
> __EOF__
Checking that no-one is using this disk right now ... FAILED
This disk is currently in use - repartitioning is probably a bad idea.
Umount all file systems, and swapoff all swap partitions on this disk.
Use the --no-reread flag to suppress this check.
sfdisk: Use the --force flag to overrule all checks.
pavel@ALABAMA:~/u-boot2$ sudo sfdisk --force ${DISK} <<-__EOF__
> 4M,,L,*
> __EOF__
Checking that no-one is using this disk right now ... FAILED
This disk is currently in use - repartitioning is probably a bad idea.
Umount all file systems, and swapoff all swap partitions on this disk.
Use the --no-reread flag to suppress this check.
Disk /dev/sda: 14,9 GiB, 15931539456 bytes, 31116288 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x3244345d
Old situation:
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 8192 7372799 7364608 3,5G 83 Linux
>>> Created a new DOS disklabel with disk identifier 0xd45cf218.
/dev/sda1: Created a new partition 1 of type 'Linux' and of size 14,9 GiB.
Partition #1 contains a ext4 signature.
/dev/sda2: Done.
New situation:
Disklabel type: dos
Disk identifier: 0xd45cf218
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 8192 31116287 31108096 14,9G 83 Linux
The partition table has been altered.
Calling ioctl() to re-read partition table.
Re-reading the partition table failed.: Device or resource busy
The kernel still uses the old table. The new table will be used at the next
reboot or after you run partprobe(8) or kpartx(8).
Syncing disks.
pavel@ALABAMA:~/u-boot2$ sudo mkfs.ext4 -L rootfs ${DISK}1
mke2fs 1.44.1 (24-Mar-2018)
/dev/sda1 contains a ext4 file system labelled 'rootfs'
last mounted on /media/pavel/rootfs on Mon Aug 24 10:45:06 2020
Proceed anyway? (y,N) y
/dev/sda1 is mounted; will not make a filesystem here!
pavel@ALABAMA:~/u-boot2$ sudo umount /media/pavel/rootfs
pavel@ALABAMA:~/u-boot2$ sudo sfdisk ${DISK} <<-__EOF__
> 4M,,L,*
> __EOF__
Checking that no-one is using this disk right now ... OK
Disk /dev/sda: 14,9 GiB, 15931539456 bytes, 31116288 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xd45cf218
Old situation:
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 8192 31116287 31108096 14,9G 83 Linux
>>> Created a new DOS disklabel with disk identifier 0xc1d5995c.
/dev/sda1: Created a new partition 1 of type 'Linux' and of size 14,9 GiB.
Partition #1 contains a ext4 signature.
/dev/sda2: Done.
New situation:
Disklabel type: dos
Disk identifier: 0xc1d5995c
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 8192 31116287 31108096 14,9G 83 Linux
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
pavel@ALABAMA:~/u-boot2$ sudo mkfs.ext4 -L rootfs ${DISK}1
mke2fs 1.44.1 (24-Mar-2018)
/dev/sda1 contains a ext4 file system labelled 'rootfs'
last mounted on /media/pavel/rootfs on Mon Aug 24 10:45:06 2020
Proceed anyway? (y,N) y
Creating filesystem with 3888512 4k blocks and 972944 inodes
Filesystem UUID: 8a3066cb-8fbb-4f02-885b-2305f1332f00
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208
Allocating group tables: done
Writing inode tables: done
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: y
done
pavel@ALABAMA:~/u-boot2$
sd-card seems to be formatted.
But I can't generate *extlinux.conf* file. There is no */opt/scripts*
folder after building u-boot.
Sincerely,
Pavel.
>
> sudo dd if=./u-boot/MLO of=${DISK} count=1 seek=1 bs=128k
> sudo dd if=./u-boot/u-boot.img of=${DISK} count=2 seek=1 bs=384k
>
> Parition the media with a 4MB hole:
>
> sudo sfdisk ${DISK} <<-__EOF__
> 4M,,L,*
> __EOF__
>
> Format as ext4:
>
> sudo mkfs.ext4 -L rootfs ${DISK}1
>
> then configure /boot/extlinux/extlinux.conf
>
> Regards,
>
> --
> Robert Nelson
> https://rcn-ee.com/
>
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/beagleboard/525b95bc-8a5d-4e62-b780-dc44760e02fao%40googlegroups.com.