I followed your steps and I still get the same results: Welcome to fdisk (util-linux 2.31.1). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Command (m for help): p Disk /dev/mmcblk0p1: 3.8 GiB, 4012868096 bytes, 7837633 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: 0x00000000 Command (m for help): d No partition is defined yet! Could not delete partition 94661085347609 Command (m for help): p Disk /dev/mmcblk0p1: 3.8 GiB, 4012868096 bytes, 7837633 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: 0x00000000 Command (m for help): n Partition type p primary (0 primary, 0 extended, 4 free) e extended (container for logical partitions) Select (default p): p Partition number (1-4, default 1): First sector (2048-7837632, default 2048): Last sector, +sectors or +size{K,M,G,T,P} (2048-7837632, default 7837632): +250M Created a new partition 1 of type 'Linux' and of size 250 MiB. Command (m for help): t Selected partition 1 Hex code (type L to list all codes): c Changed type of partition 'Linux' to 'W95 FAT32 (LBA)'. Command (m for help): p Disk /dev/mmcblk0p1: 3.8 GiB, 4012868096 bytes, 7837633 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: 0x00000000 Device Boot Start End Sectors Size Id Type /dev/mmcblk0p1p1 2048 514047 512000 250M c W95 FAT32 (LBA) Command (m for help): a Selected partition 1 The bootable flag on partition 1 is enabled now. Command (m for help): n Partition type p primary (1 primary, 0 extended, 3 free) e extended (container for logical partitions) Select (default p): p Partition number (2-4, default 2): First sector (514048-7837632, default 514048): Last sector, +sectors or +size{K,M,G,T,P} (514048-7837632, default 7837632): Created a new partition 2 of type 'Linux' and of size 3.5 GiB. Command (m for help): w The partition table has been altered. Failed to add partition 1 to system: Invalid argument Failed to add partition 2 to system: Invalid argument The kernel still uses the old partitions. The new table will be used at the next reboot. Syncing disks. $ sudo fdisk /dev/mmcblk0p1 Welcome to fdisk (util-linux 2.31.1). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Command (m for help): p Disk /dev/mmcblk0p1: 3.8 GiB, 4012868096 bytes, 7837633 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: 0x00000000 Device Boot Start End Sectors Size Id Type /dev/mmcblk0p1p1 * 2048 514047 512000 250M c W95 FAT32 (LBA) /dev/mmcblk0p1p2 514048 7837632 7323585 3.5G 83 Linux Command (m for help): q I then copied the MLO, u-boot.img and other files into the sd card, insert the card into the target board, and power up. Same thing. Am I missing something? Also, I tried "dd". Should I use if=/dev/null or if=/dev/zero? The if=/dev/null doesn't seem to anything, whereas the if=/dev/zero did write: 7837634+0 records in 7837633+0 records out 4012868096 bytes (4.0 GB, 3.7 GiB) copied, 494.91 s, 8.1 MB/s
|