summaryrefslogtreecommitdiffstats
path: root/scripts/README-mkefi-agl.md
blob: f415747d830dcd1f13d4a00d77776b69d54427ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
## Introduction
This script will install the AGL distribution on a removable device to boot on Intel UEFI-based computer.

In particular it can create a USB or SD bootable support for (MinnowBoard)[www.minnowboard.org].

Usage:

    mkefi-agl.sh [-v] HDDIMG REMOVABLE_DEVICE
       -v: verbose debug
       HDDIMG: the hddimg file to generate the efi disk from
       REMOVABLE_DEVICE: the block device to write the image to, e.g. /dev/sdh

Example: `mkefi-agl.sh agl-demo-platform-intel-corei7-64.hddimg /dev/sdd`

## Documentation
Additional documentation: https://wiki.automotivelinux.org/agl-distro/developer_resources_intel
{bootmmc} ${bootkaddr} boot/${bootkfile}' setenv 'bootcmd' 'setenv bootargs ${bootargs_console} ${bootargs_video} ${bootargs_root} ${bootargs_extra}; run bootkload_sd; bootm ${bootkaddr}' ################ Boot on MMC (SDcard) with initrd ###### setenv 'bootargs_root' 'root=/dev/ram0 ramdisk_size=16384' setenv 'bootmmc' '1:1' setenv 'bootkload_sd' 'ext4load mmc ${bootmmc} ${bootkaddr} boot/${bootkfile}' setenv 'bootiload_sd' 'ext4load mmc ${bootmmc} ${bootiaddr} boot/${bootifile}' setenv 'bootcmd' 'setenv bootargs ${bootargs_console} ${bootargs_video} ${bootargs_root} ${bootargs_extra}; run bootkload_sd; run bootiload_sd; bootm ${bootkaddr} ${bootiaddr}' ################ Netboot through TFTP+NBD ################## # replace <IP> addresses by appropriate addresses setenv 'ipaddr' '<board_IP>' setenv 'serverip' '<server_IP>' setenv 'bootargs_root' 'root=/dev/ram0 ramdisk_size=16384 ip=dhcp' setenv 'bootkload_net' 'tftp ${bootkaddr} porter/${bootkfile}' setenv 'bootiload_net' 'tftp ${bootiaddr} porter/${bootifile}' setenv 'bootcmd' 'setenv bootargs ${bootargs_console} ${bootargs_video} ${bootargs_root} ${bootargs_extra} nbd.server=${serverip}; run bootkload_net; run bootiload_net; bootm ${bootkaddr} ${bootiaddr}'