Hello list,
Please cc me, as I'm not subscribed.
It seems that imgbuild.sh destroys the GPT, resulting in kernel not found.
I followed the instruction on https://wiki.linaro.org/LEG/Engineering/Kernel/UEFI/build
and do as follows:
# create GPT on 16GB SD:
gdisk -l /dev/sdb GPT fdisk (gdisk) version 0.8.7
Partition table scan: MBR: protective BSD: not present APM: not present GPT: present
Found valid GPT with protective MBR; using GPT. Disk /dev/sdb: 31116288 sectors, 14.8 GiB Logical sector size: 512 bytes Disk identifier (GUID): 58356604-961A-4F20-9D71-B4F19ED27A35 Partition table holds up to 128 entries First usable sector is 34, last usable sector is 31116254 Partitions will be aligned on 2048-sector boundaries Total free space is 30067645 sectors (14.3 GiB)
Number Start (sector) End (sector) Size Code Name 1 10240 1058815 512.0 MiB EF00 EFI System
# create filesystem, copy kernel and dtb:
mkfs.vfat -F32 /dev/sdb1 mount /dev/sdb1 /mnt/ cp arch/arm/boot/uImage /mnt/ cp arch/arm/boot/dts/exynos5250-arndale.dtb /mnt/board.dtb umount /mnt/
# fetch trees and build:
git clone git://git.linaro.org/arm/uefi/uefi-next.git git clone git://git.linaro.org/arm/uefi/uefi-tools.git export PATH=$PATH:/usr/src/uefi-tools cd uefi-next/ git checkout linaro-tracking uefi-build.sh arndale cd SamsungPlatformPkg/Apps/Tools/mkbl2/
# 'burn; image to SD:
./imgburn.sh --disk /dev/sdb --image ../../../../Build/Arndale-Exynos/RELEASE_ARMLINUXGCC/FV/ARNDALE_EFI.fd Config: IMAGE ../../../../Build/Arndale-Exynos/RELEASE_ARMLINUXGCC/FV/ARNDALE_EFI.fd SoC 5250 DISK /dev/sdb source file(../../../../Build/Arndale-Exynos/RELEASE_ARMLINUXGCC/FV/ARNDALE_EFI.fd) size = 2703360 bytes target file(./fwbl2.bin) size = 16384 bytes 16+0 records in 16+0 records out 8192 bytes (8.2 kB) copied, 0.00652876 s, 1.3 MB/s 32+0 records in 32+0 records out 16384 bytes (16 kB) copied, 0.0048919 s, 3.3 MB/s 5280+0 records in 5280+0 records out 2703360 bytes (2.7 MB) copied, 0.729687 s, 3.7 MB/s
# list SD: # gdisk -l /dev/sdb GPT fdisk (gdisk) version 0.8.7
Caution: invalid main GPT header, but valid backup; regenerating main header from backup!
Caution! After loading partitions, the CRC doesn't check out! Warning! Main partition table CRC mismatch! Loaded backup partition table instead of main partition table!
Warning! One or more CRCs don't match. You should repair the disk!
Partition table scan: MBR: protective BSD: not present APM: not present GPT: damaged
**************************************************************************** Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT, but disk verification and recovery are STRONGLY recommended. **************************************************************************** Disk /dev/sdb: 31116288 sectors, 14.8 GiB Logical sector size: 512 bytes Disk identifier (GUID): 58356604-961A-4F20-9D71-B4F19ED27A35 Partition table holds up to 128 entries First usable sector is 34, last usable sector is 31116254 Partitions will be aligned on 2048-sector boundaries Total free space is 30067645 sectors (14.3 GiB)
Number Start (sector) End (sector) Size Code Name 1 10240 1058815 512.0 MiB EF00 EFI System
# Boot arndale:
(screen /dev/ttyUSB0 115200)
Boot firmware (version 0.90 built at 20:04:00 on Nov 29 2013) PROGRESS CODE: V3020003 I0 PROGRESS CODE: V3020002 I0 PROGRESS CODE: V3020003 I0 PROGRESS CODE: V3020002 I0 The default boot selection will start in 1 seconds ERROR: Did not find Linux kernel. [1] Linaro image on SD card - VenHw(3A02E7FE-0649-4FB4-BE4F-A862CA1872A9)/HD(2,MBR,0x00000000,0x2000,0x1A000)/uImage - Initrd: VenHw(3A02E7FE-0649-4FB4-BE4F-A862CA1872A9)/HD(2,MBR,0x00000000,0x2000,0x1A000)/uInitrd - Arguments: root=/dev/mmcblk1p3 rw rootwait console=ttySAC2,115200n8 init --no-log - FDT: VenHw(3A02E7FE-0649-4FB4-BE4F-A862CA1872A9)/HD(2,MBR,0x00000000,0x2000,0x1A000)/board.dtb - LoaderType: Linux kernel with Local FDT ----------------------- Global FDT Config - VenHw(3A02E7FE-0649-4FB4-BE4F-A862CA1872A9)/HD(2,MBR,0x00000000,0x2000,0x1A000)/board.dtb ----------------------- [a] Boot Manager [b] Shell [c] Reboot [d] Shutdown Start:
There is no response on keypresses here. There should be?
If I fix the GPT with gdisk, I get no output on boot.
This EFI boot is new for me, so please let me know if I do something wrong. Also, please let me know if this is the wrong list for this kind of questions.
Sander