Bump buildroot to 2019.02
This commit is contained in:
4
bsp/buildroot/board/solidrun/clearfog/extlinux.conf
Normal file
4
bsp/buildroot/board/solidrun/clearfog/extlinux.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
label Clearfog Linux
|
||||
kernel /boot/zImage
|
||||
devicetree /boot/armada-388-clearfog-base.dtb
|
||||
append console=ttyS0,115200n8 root=/dev/mmcblk0p1 rootwait
|
||||
16
bsp/buildroot/board/solidrun/clearfog/genimage.cfg
Normal file
16
bsp/buildroot/board/solidrun/clearfog/genimage.cfg
Normal file
@@ -0,0 +1,16 @@
|
||||
image sdcard.img {
|
||||
hdimage {
|
||||
}
|
||||
|
||||
partition u-boot {
|
||||
in-partition-table = "no"
|
||||
image = "u-boot-spl.kwb"
|
||||
offset = 512
|
||||
}
|
||||
|
||||
partition rootfs {
|
||||
partition-type = 0x83
|
||||
image = "rootfs.ext4"
|
||||
offset = 1M
|
||||
}
|
||||
}
|
||||
1
bsp/buildroot/board/solidrun/clearfog/linux.fragment
Normal file
1
bsp/buildroot/board/solidrun/clearfog/linux.fragment
Normal file
@@ -0,0 +1 @@
|
||||
CONFIG_SENSORS_MCP3021=y
|
||||
5
bsp/buildroot/board/solidrun/clearfog/post-build.sh
Executable file
5
bsp/buildroot/board/solidrun/clearfog/post-build.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
BOARD_DIR="$(dirname $0)"
|
||||
|
||||
install -m 0644 -D $BOARD_DIR/extlinux.conf $TARGET_DIR/boot/extlinux/extlinux.conf
|
||||
61
bsp/buildroot/board/solidrun/clearfog/readme.txt
Normal file
61
bsp/buildroot/board/solidrun/clearfog/readme.txt
Normal file
@@ -0,0 +1,61 @@
|
||||
**********************
|
||||
SolidRun Clearfog Base
|
||||
**********************
|
||||
|
||||
This file documents Buildroot's support for the Clearfog Base by Solid Run.
|
||||
|
||||
Vendor's documentation:
|
||||
https://wiki.solid-run.com/doku.php?id=products:a38x:documents
|
||||
|
||||
Warning for eMMC variant of the MicroSoM
|
||||
========================================
|
||||
|
||||
If you bought a MicroSoM version that includes an on-board eMMC flash, the
|
||||
built-in microSD card slot *WILL NOT WORK*. The Internet says that you have to
|
||||
upload the first bootloader via UART. This manual does not cover these steps;
|
||||
only MicroSoMs without the eMMC are supported.
|
||||
|
||||
Build
|
||||
=====
|
||||
|
||||
Start with the default Buildroot's configuration for Clearfog:
|
||||
|
||||
make solidrun_clearfog_defconfig
|
||||
|
||||
Build all components:
|
||||
|
||||
make
|
||||
|
||||
The results of the build are available in ./output/images.
|
||||
|
||||
Create a bootable SD card
|
||||
=========================
|
||||
|
||||
To determine the device associated to the SD card have a look in the
|
||||
/proc/partitions file:
|
||||
|
||||
cat /proc/partitions
|
||||
|
||||
Buildroot prepares a bootable "sdcard.img" image in the output/images/
|
||||
directory, ready to be dumped on a microSD card. Launch the following
|
||||
command as root:
|
||||
|
||||
dd if=output/images/sdcard.img of=/dev/<your-microsd-device> conv=fdatasync
|
||||
|
||||
*** WARNING! The dd command will destroy all the card content. Use with care! ***
|
||||
|
||||
For details about the medium image layout, see the definition in
|
||||
board/solidrun/clearfog/genimage.cfg.
|
||||
|
||||
Boot the Clearfog board
|
||||
=======================
|
||||
|
||||
Here's how to boot the board:
|
||||
|
||||
- Set up the DIP switches for microSD boot. The correct values are:
|
||||
1: off, 2: off, 3: ON, 4: ON, 5: ON. In this scheme, switch #1" is closer to
|
||||
the ethernet ports and #5 is closer to the microSD card, "ON" means towards
|
||||
the SOM, and "off" means towards the SFP cage.
|
||||
- Connect to the board's console over the microUSB port.
|
||||
- Insert the SD card into the slot on the board (pins up).
|
||||
- Power up the board.
|
||||
4
bsp/buildroot/board/solidrun/macchiatobin/extlinux.conf
Normal file
4
bsp/buildroot/board/solidrun/macchiatobin/extlinux.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
label Macchiatobin Linux
|
||||
kernel /boot/Image
|
||||
devicetree /boot/armada-8040-mcbin.dtb
|
||||
append console=ttyS0,115200n8 root=/dev/mmcblk1p1 rootwait
|
||||
@@ -1,3 +1,3 @@
|
||||
CONFIG_MARVELL_PHY=y
|
||||
CONFIG_MARVELL_10G_PHY=y
|
||||
CONFIG_PHY_MVEBU_CP110_COMPHY=y
|
||||
CONFIG_SFP=y
|
||||
|
||||
5
bsp/buildroot/board/solidrun/macchiatobin/post-build-mainline.sh
Executable file
5
bsp/buildroot/board/solidrun/macchiatobin/post-build-mainline.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
BOARD_DIR="$(dirname $0)"
|
||||
|
||||
install -m 0644 -D $BOARD_DIR/extlinux.conf $TARGET_DIR/boot/extlinux/extlinux.conf
|
||||
@@ -15,19 +15,20 @@ How to build
|
||||
There are two build options: mainline support and vendor support.
|
||||
|
||||
For the mainline BSP, we use:
|
||||
- Linux v4.15
|
||||
- U-Boot v2018.01
|
||||
- Linux v4.19.2
|
||||
- U-Boot v2018.11
|
||||
|
||||
For the vendor BSP, we use the sources available from Marvell Github
|
||||
page at https://github.com/MarvellEmbeddedProcessors, which uses:
|
||||
- Linux v4.4.52
|
||||
- U-Boot v2017.03
|
||||
- Linux v4.4.120
|
||||
- U-Boot v2018.03
|
||||
|
||||
At the moment mainline support for the board is a work in progress.
|
||||
Mainline kernel 4.15 enables eth2 in 1Gb (RJ45 connector J5) and
|
||||
eth0 in 10Gb (SFP connector CON15 and RJ45 connector CON16).
|
||||
The vendor BSP enables more hardware features out of the box,
|
||||
e.g. all the network interfaces.
|
||||
At the moment mainline support for the board is a work in
|
||||
progress. Mainline kernel 4.19 enables eth2 in 1Gb (RJ45 connector J5),
|
||||
copper 10Gb interfaces, and automatic configuration of select SFP
|
||||
modules on the SFP cages. The vendor BSP enables more hardware features
|
||||
out of the box, but lacks support for SFP detection and automatic
|
||||
configuration.
|
||||
|
||||
To use the mainline BSP run the following commands:
|
||||
|
||||
@@ -73,10 +74,13 @@ Insert the micro SDcard in the MacchiatoBin board and power it up.
|
||||
The serial console is accessible at the micro-USB Type-B connector
|
||||
marked CON9. The serial line settings are 115200 8N1.
|
||||
|
||||
By default U-Boot will load its environment from the SPI flash. On the
|
||||
first boot SPI flash may be empty or it may contain a legacy
|
||||
environment incompatible with up-to-date mainline U-Boot and
|
||||
kernel. Then the following commands can be used to boot the board:
|
||||
Note: the following text only applies to the vendor BSP from
|
||||
solidrun_macchiatobin_marvell_defconfig.
|
||||
|
||||
By default Marvell provided U-Boot will load its environment from the
|
||||
SPI flash. On the first boot SPI flash may be empty or it may contain a
|
||||
legacy environment that prevents proper boot. Then the following
|
||||
commands can be used to boot the board:
|
||||
|
||||
=> ext4load mmc 1:1 0x01700000 /boot/uEnv-example.txt
|
||||
=> env import -t 0x01700000 $filesize
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
CONFIG_ENV_IS_IN_MMC=y
|
||||
# CONFIG_ENV_IS_IN_SPI_FLASH is not set
|
||||
Reference in New Issue
Block a user