A20 OLinuXino Lime2: Difference between revisions
(Created page with "== Installation == Everything except U-boot is already present in the Generic ARM tarball on the download page. === Compile U-boot === Download the u-boot repository git clone --depth 1 git://git.denx.de/u-boot.git then configure and compile u-boot make CROSS_COMPILE=arm-linux-gnueabihf- A20-OLinuXino-Lime2_defconfig make CROSS_COMPILE=arm-linux-gnueabihf- This should output a combined SPL file with u-boot called <code>u-boot-sunxi-with-spl.bin</code> ===...") |
(add category installation) |
||
(7 intermediate revisions by 4 users not shown) | |||
Line 3: | Line 3: | ||
=== Compile U-boot === | === Compile U-boot === | ||
Download the u-boot repository | Download the latest stable tag from the u-boot repository | ||
{{Cmd|git clone --depth 1 --branch v2023.04 <nowiki>git://git.denx.de/u-boot.git</nowiki>}} | |||
then configure and compile u-boot | then configure and compile u-boot | ||
{{Cmd|make CROSS_COMPILE{{=}}arm-linux-gnueabihf- A20-OLinuXino-Lime2_defconfig | |||
make CROSS_COMPILE{{=}}arm-linux-gnueabihf-}} | |||
This should output a combined SPL file with u-boot called <code>u-boot-sunxi-with-spl.bin</code> | This should output a combined SPL file with u-boot called <code>u-boot-sunxi-with-spl.bin</code> | ||
=== (OR) Using U-boot from NetBSD === | |||
[https://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/sysutils/u-boot-a20-olinuxino-lime2/index.html NetBSD u-boot] may also be used to complete the steps below. After extracting latest tarball, {{Path|/share/u-boot/}} directory contains <code>u-boot-sunxi-with-spl.bin</code>. | |||
=== Prepare an SD Card === | === Prepare an SD Card === | ||
Firstly, erase the first part of your SD Card including the partition table). | |||
Start the partition at sector 2048, change its type to W95 FAT32, and set its bootable flag. Finally create a FAT filesystem on the new partition. | {{Cmd|dd if{{=}}/dev/zero of{{=}}${card} bs{{=}}1M count{{=}}1}} | ||
Secondly, create a DOS partition table and add a primary partition to your card. | |||
{{Cmd|fdisk /dev/sdX}} | |||
Start the partition at sector 2048, change its type to W95 FAT32, and set its bootable flag. | |||
Finally, create a FAT filesystem on the new partition. | |||
{{Cmd|mkfs.fat /dev/sdX1}} | |||
=== Copy Data to the SD Card === | === Copy Data to the SD Card === | ||
Copy u-boot to the SD Card | Copy SPL with u-boot to the SD Card offset by 8KB (specific to Sunxi). | ||
{{Cmd|dd if{{=}}u-boot-sunxi-with-spl.bin of{{=}}/dev/sdX bs{{=}}1024 seek{{=}}8}} | |||
Mount the partition and extract files from the Generic ARM tarball onto it. | |||
├── alpine.apkovl.tar.gz | |||
├── apks | |||
│ └── armv7 | |||
│ ├── alpine-base-3.17.2-r0.apk | |||
│ ├── ... | |||
│ └── zlib-1.2.13-r0.apk | |||
├── boot | |||
│ ├── dtbs-lts | |||
│ │ └── sun7i-a20-olinuxino-lime2.dtb | |||
│ ├── initramfs-lts | |||
│ ├── modloop-lts | |||
│ ├── System.map-lts | |||
│ └── vmlinuz-lts | |||
└── extlinux | |||
└── extlinux.conf | |||
=== After Installation === | === After Installation === | ||
The default login is | The default login is <code>root</code>, HDMI should work out-of-the-box, ethernet is off by default. Use <code>setup-alpine</code> to complete the remaining configuration. The Installation page should guide you from here. | ||
The Installation page should guide you from here. | |||
[[Category:ARM]] | |||
[[Category:Installation]] |
Latest revision as of 09:17, 10 November 2023
Installation
Everything except U-boot is already present in the Generic ARM tarball on the download page.
Compile U-boot
Download the latest stable tag from the u-boot repository
git clone --depth 1 --branch v2023.04 git://git.denx.de/u-boot.git
then configure and compile u-boot
make CROSS_COMPILE=arm-linux-gnueabihf- A20-OLinuXino-Lime2_defconfig make CROSS_COMPILE=arm-linux-gnueabihf-
This should output a combined SPL file with u-boot called u-boot-sunxi-with-spl.bin
(OR) Using U-boot from NetBSD
NetBSD u-boot may also be used to complete the steps below. After extracting latest tarball, /share/u-boot/ directory contains u-boot-sunxi-with-spl.bin
.
Prepare an SD Card
Firstly, erase the first part of your SD Card including the partition table).
dd if=/dev/zero of=${card} bs=1M count=1
Secondly, create a DOS partition table and add a primary partition to your card.
fdisk /dev/sdX
Start the partition at sector 2048, change its type to W95 FAT32, and set its bootable flag.
Finally, create a FAT filesystem on the new partition.
mkfs.fat /dev/sdX1
Copy Data to the SD Card
Copy SPL with u-boot to the SD Card offset by 8KB (specific to Sunxi).
dd if=u-boot-sunxi-with-spl.bin of=/dev/sdX bs=1024 seek=8
Mount the partition and extract files from the Generic ARM tarball onto it.
├── alpine.apkovl.tar.gz ├── apks │ └── armv7 │ ├── alpine-base-3.17.2-r0.apk │ ├── ... │ └── zlib-1.2.13-r0.apk ├── boot │ ├── dtbs-lts │ │ └── sun7i-a20-olinuxino-lime2.dtb │ ├── initramfs-lts │ ├── modloop-lts │ ├── System.map-lts │ └── vmlinuz-lts └── extlinux └── extlinux.conf
After Installation
The default login is root
, HDMI should work out-of-the-box, ethernet is off by default. Use setup-alpine
to complete the remaining configuration. The Installation page should guide you from here.