diff options
author | Adrian Mangeac <Adrian.Mangeac@enea.com> | 2019-10-09 17:29:57 +0200 |
---|---|---|
committer | Adrian Mangeac <Adrian.Mangeac@enea.com> | 2019-10-22 13:49:00 +0200 |
commit | d96794e6a43a8d8464895d2a7f8a3ce12a31a72e (patch) | |
tree | 519e9afd9d4823ef3b016c0fbcb7f6c9b56b3953 /raspberrypi3-64 | |
parent | 550cd0d6ca19048309ddec405498fc6dad1fa899 (diff) | |
download | el_manifests-standard-d96794e6a43a8d8464895d2a7f8a3ce12a31a72e.tar.gz |
Add build & boot instructionsEnea_Linux_8.1warrior
Change-Id: If72fc026208857f51679ea4f242cca20b147a84b
Signed-off-by: Adrian Mangeac <Adrian.Mangeac@enea.com>
Diffstat (limited to 'raspberrypi3-64')
-rw-r--r-- | raspberrypi3-64/README | 74 |
1 files changed, 72 insertions, 2 deletions
diff --git a/raspberrypi3-64/README b/raspberrypi3-64/README index 47e7502..efe0126 100644 --- a/raspberrypi3-64/README +++ b/raspberrypi3-64/README | |||
@@ -1,8 +1,78 @@ | |||
1 | This file contains build and boot instructions for Enea Linux on RaspberryPi3, | 1 | This file contains build and boot instructions for Enea Linux on |
2 | raspberrypi3-64, standard profile. | ||
2 | 3 | ||
3 | standard profile. | 4 | Build instructions |
5 | ------------------ | ||
6 | $ mkdir enea-linux | ||
7 | $ cd enea-linux | ||
8 | $ repo init -u git@git.enea.com:linux/manifests/el_manifests-standard.git \ | ||
9 | -b refs/tags/Enea_Linux_8.1 -m raspberrypi3-64/default.xml | ||
10 | $ repo sync | ||
11 | $ cd poky | ||
12 | $ TEMPLATECONF=meta-el-standard/conf/template.raspberrypi3-64 . \ | ||
13 | ./oe-init-build-env <build_dir> | ||
14 | $ bitbake enea-image-standard / enea-image-standard-sdk | ||
4 | 15 | ||
5 | 16 | ||
17 | Boot from RAM | ||
18 | ------------- | ||
19 | Below you find an example that requires a TFTP server set up at IP address | ||
20 | <tftp_server_ip>, and that the server stores the Enea Linux image files, | ||
21 | kernel image, device tree blob and root filesystem, in | ||
22 | /tftpboot/<download_directory>. | ||
6 | 23 | ||
24 | Once you have that in place, run the following commands on the target: | ||
7 | 25 | ||
26 | ## set tftp server IP | ||
27 | U-Boot> setenv serverip <tftp_server_ip> | ||
8 | 28 | ||
29 | ## tftp the image files on the target machine | ||
30 | U-Boot> tftpboot 0x01000000 Image | ||
31 | U-Boot> tftpboot 0x02000000 Image-bcm2837-rpi-3-b.dtb | ||
32 | U-Boot> tftpboot 0x03000000 enea-image-standard-raspberrypi3-64.ext2.gz.u-boot | ||
33 | |||
34 | ## add any other bootargs values if necessary | ||
35 | U-Boot> setenv bootargs "8250.nr_uarts=1 root=/dev/ram rw ramdisk_size=500000 | ||
36 | ip=dhcp \ | ||
37 | console=ttyS0,115200" | ||
38 | |||
39 | ## Start boot sequence | ||
40 | U-Boot> booti 0x01000000 0x03000000 0x02000000 | ||
41 | |||
42 | |||
43 | |||
44 | Boot from SD card | ||
45 | ----------------- | ||
46 | Copy the enea-image-standard-raspberrypi3-64.rpi-sdimg image to the SD card | ||
47 | using the Linux dd tool or Win32DiskImager in Windows, and insert it into the | ||
48 | RPi. The Raspberry Pi will not start without a properly formatted SD Card, | ||
49 | containing the bootloader, kernel image and rootfs. | ||
50 | |||
51 | Below you can find two methods of how to format an SD Card: | ||
52 | |||
53 | 1. Format and copy images to the SD card using the Linux dd command line | ||
54 | |||
55 | The dd command copies a file, converting the format of the data in the | ||
56 | process, according to the operands specified: | ||
57 | |||
58 | $ sudo dd bs=4M if=enea-image-standard-sdk-raspberrypi3-64.rpi-sdimg of=/dev/sdg | ||
59 | |||
60 | Note: | ||
61 | Use dd cautiously - improper usage or entering the wrong values could | ||
62 | inadvertently wipe, destroy, or overwrite the data on your hard drive. | ||
63 | |||
64 | 2. Format the SD card using the Win32DiskImager program | ||
65 | |||
66 | 1) Download and unzip Win32DiskImager | ||
67 | 2) Run Win32DiskImager.exe | ||
68 | 3) Select the drive of your SD card | ||
69 | 4) Select the image enea-image-standard-raspberrypi3-64.rpi-sdimg | ||
70 | 5) Click "Write" and wait for the write to complete | ||
71 | 6) Exit the imager and eject the SD Card | ||
72 | 7) Plug the card into your Raspberry Pi | ||
73 | |||
74 | Note: | ||
75 | Be careful to select the correct drive. If you choose the wrong one you may | ||
76 | destroy your HDD data. If you are using an SD Card slot and can't see the | ||
77 | drive in the Win32DiskImager window, try using an affordable external adapter | ||
78 | in a USB slot. | ||