Commit 8a2db059 authored by Guido Gunther's avatar Guido Gunther
Browse files

Merge branch 'master' into 'master'

Master

See merge request Librem5/librem5-devkit-tools!2
parents ce3a69e2 f9576b9a
......@@ -102,6 +102,17 @@ sudo make install
scripts/build_uuu.sh -i
#+END_SRC
* Flash the test image
The eMMC that gets flashed is files/devkit-test.img . Put the "Boot Mode" switch in the USB position.
THIS WILL ERASE EVERYTHING ON YOUR eMMC.
#+BEGIN_SRC
scripts/get_image.sh
sudo uuu uuu_scripts/flash_librem5-devkiti-test.lst
#+END_SRC
* Download Target Binaries
You can manually download or build the required binaries. There is also a convenience script to download prebuilt binaries from the Purism servers.
......
......@@ -70,7 +70,7 @@ cd ${DIR}
if [ "${build_initrd}" == 1 ]; then
find . -print0 | cpio --null -o --format=newc | gzip -9 > ${cwd}/build/${BASE}.image
else
fakeroot genext2fs -d . -N 24000 -b 300000 ${cwd}/build/${BASE}.image
fakeroot genext2fs -d . -N 24000 -b 350000 ${cwd}/build/${BASE}.image
fi
#gzip ${cwd}/build/${BASE}.image
......
......@@ -5,7 +5,7 @@
# SPDX-License-Identifier: GPL-3.0+
#
packages="whiptail iperf3 wireless-tools"
packages="whiptail iperf3 wireless-tools network-manager powertop htop scdaemon"
usage() {
echo "Usage : $1 "
......
#!/bin/bash
#
# Copyright (C) 2018 Purism SPC
#
# SPDX-License-Identifier: GPL-3.0+
#
usage() {
echo "Usage : $1 "
echo " -h Display this help message."
echo " -T [ci|test] get this version of the image "
echo " -n don't extract the image"
}
build_type=test
pureos_board=devkit
no_extract=0
while getopts "dT:" opt; do
case ${opt} in
T)
build_type=$OPTARG
;;
d)
no_extract=1
;;
\?)
echo "Invalid Option: -$OPTARG" 1>&2
usage "$0"
exit 0
;;
h)
usage "$0"
exit 0
;;
esac
done
[ ! -e files ] && mkdir files
base_url=https://arm01.puri.sm/job/Images/job/${pureos_board}-${build_type}_image_build/lastSuccessfulBuild/artifact/
wget -N "${base_url}/${pureos_board}-${build_type}.img.xz" -P files/
if [ "${no_extract}" == 0 ]; then
xz -vdk -f files/${pureos_board}-${build_type}.img.xz
fi
......@@ -6,6 +6,8 @@
#
while true; do
cat /sys/class/thermal/thermal_zone0/temp
uptime
TEMP=$( cat /sys/class/thermal/thermal_zone0/temp )
echo "Temperature $TEMP"
sleep 30
done
uuu_version 1.0.1
SDP: boot -f ../files/u-boot-devkit-recovery.imx
# This command will be run when use SPL
SDPU: delay 1000
SDPU: write -f ../files/u-boot-devkit-recovery.imx -offset 0x57c00
SDPU: jump
# This command will be run when ROM support stream mode
SDPS: boot -f ../files/u-boot-devkit-recovery.imx
SDPU: delay 1000
#FB: ucmd setenv fastboot_buffer 0x43000000
FB: ucmd setenv fastboot_dev mmc
FB: ucmd setenv mmcdev 0
FB: flash -raw2sparse all ../files/devkit-test.img
FB: Done
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment