1*bec4ebc2SBrad Bishop# Juno Development Platform Support in meta-arm-bsp
2*bec4ebc2SBrad Bishop
3*bec4ebc2SBrad Bishop## Howto Build and Run
4*bec4ebc2SBrad Bishop
5*bec4ebc2SBrad Bishop### Configuration:
6*bec4ebc2SBrad BishopIn the local.conf file, MACHINE should be set as follow:
7*bec4ebc2SBrad BishopMACHINE ?= "juno"
8*bec4ebc2SBrad Bishop
9*bec4ebc2SBrad BishopJuno is using a USB hard drive for root filesystem by default. The distribution
10*bec4ebc2SBrad Bishopused must have ```usbhost``` and ```usbgadget``` in DISTRO_FEATURES (this is
11*bec4ebc2SBrad Bishopthe case in poky distribution).
12*bec4ebc2SBrad Bishop
13*bec4ebc2SBrad Bishop### Build:
14*bec4ebc2SBrad Bishop```bash$ bitbake core-image-minimal```
15*bec4ebc2SBrad Bishop
16*bec4ebc2SBrad Bishop### Update Juno SD card:
17*bec4ebc2SBrad Bishop
18*bec4ebc2SBrad BishopThe SD card content is generated during the build here:
19*bec4ebc2SBrad Bishoptmp/deploy/images/juno/firmware-image-juno.tar.gz
20*bec4ebc2SBrad Bishop
21*bec4ebc2SBrad BishopIts content must be written on the Juno firmware SD card.
22*bec4ebc2SBrad BishopTo do this:
23*bec4ebc2SBrad Bishop- insert the sdcard of the Juno in an SD card reader and mount it:
24*bec4ebc2SBrad Bishop```bash$ sudo mount /dev/sdx1 /mnt```
25*bec4ebc2SBrad Bishop(replace sdx by the device of the SD card)
26*bec4ebc2SBrad Bishop
27*bec4ebc2SBrad Bishop- erase its content and put the new one:
28*bec4ebc2SBrad Bishop```bash$ sudo rm -rf /mnt/*```
29*bec4ebc2SBrad Bishop```bash$ sudo tar --no-same-owner -xzf tmp/deploy/images/juno/firmware-image-juno.tar.gz -C /mnt/```
30*bec4ebc2SBrad Bishop```bash$ sudo umount /mnt```
31*bec4ebc2SBrad Bishop
32*bec4ebc2SBrad Bishop- reinsert the SD card in the Juno board
33*bec4ebc2SBrad Bishop
34*bec4ebc2SBrad Bishop### Create an USB hard drive:
35*bec4ebc2SBrad Bishop
36*bec4ebc2SBrad BishopLinux root file system should be stored on the second partition of an USB
37*bec4ebc2SBrad Bishopdrive that must be plugged on the Juno Platform.
38*bec4ebc2SBrad Bishop
39*bec4ebc2SBrad BishopThis partition should be initialized with the content of the filesystem
40*bec4ebc2SBrad Bishopgenerated by yocto that you can find here:
41*bec4ebc2SBrad Bishoptmp/deploy/images/juno/core-image-minimal-juno.tar.bz2
42*bec4ebc2SBrad Bishop
43*bec4ebc2SBrad BishopTo do this
44*bec4ebc2SBrad Bishop- Format a USB disk, create two primary partitions (ext4).
45*bec4ebc2SBrad Bishop- mount the secondary partition
46*bec4ebc2SBrad Bishop- untar tmp/deploy/images/juno/core-image-minimal-juno.tar.bz2 on to the
47*bec4ebc2SBrad Bishop  secondary partition.
48*bec4ebc2SBrad Bishop
49*bec4ebc2SBrad Bishop### Run:
50*bec4ebc2SBrad BishopYou must insert the SD card and the USB drive and power-on the Juno board.
51*bec4ebc2SBrad BishopThe console should be available on the second serial line:
52*bec4ebc2SBrad Bishopscreen -L /dev/tty.usbserial 115200
53*bec4ebc2SBrad Bishop
54*bec4ebc2SBrad BishopOn the first boot the images will be flashed which can take some time.
55*bec4ebc2SBrad Bishop
56*bec4ebc2SBrad Bishop## Devices supported in the kernel
57*bec4ebc2SBrad Bishop- serial
58*bec4ebc2SBrad Bishop- usb
59*bec4ebc2SBrad Bishop- network
60*bec4ebc2SBrad Bishop- watchdog
61*bec4ebc2SBrad Bishop- rtc
62*bec4ebc2SBrad Bishop- mmc
63*bec4ebc2SBrad Bishop
64*bec4ebc2SBrad Bishop### Untested:
65*bec4ebc2SBrad Bishop- i2c
66*bec4ebc2SBrad Bishop- dma
67*bec4ebc2SBrad Bishop- pci
68*bec4ebc2SBrad Bishop- sata
69*bec4ebc2SBrad Bishop- sound
70*bec4ebc2SBrad Bishop
71*bec4ebc2SBrad Bishop## Devices not supported or not functional
72*bec4ebc2SBrad Bishop- framebuffer: not functional
73*bec4ebc2SBrad Bishop    The HDMI is not properly detected.
74*bec4ebc2SBrad Bishop- GPU (no user land libraries).
75*bec4ebc2SBrad Bishop    The mali-midgard-kernel can be used to have a kernel driver
76