Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
L
librem5-devkit-tools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
M.
librem5-devkit-tools
Commits
b147fb01
Commit
b147fb01
authored
Jan 23, 2019
by
M.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add some comment
parent
c23af9c9
Pipeline
#3782
passed with stage
in 1 minute and 56 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
0 deletions
+40
-0
README.org
README.org
+40
-0
No files found.
README.org
View file @
b147fb01
...
...
@@ -279,3 +279,43 @@ nmcli device wifi rescan
nmcli device wifi list
nmcli device wifi connect SSID-Name password wireless-password
#+END_SRC
** Use a simple shell script
The tasks the python-script scripts/librem5-devkit-flash-image does are just 4
commands:
#+BEGIN_SRC
#!/bin/sh -e
test -f devkit_image/devkit.img || curl https://arm01.puri.sm/job/Images/job/Image%20Build/1075/artifact/devkit.img.xz | xz -d > devkit_image/devkit.img
test -f devkit_image/u-boot-devkit-recovery.imx || curl https://arm01.puri.sm/job/u-boot_builds/job/devkit-recovery_uboot_build/22/artifact/build/u-boot-devkit-recovery.imx > devkit_image/u-boot-devkit-recovery.imx
cat > devkit_image/flash_devkit.lst <<EOF
uuu_version 1.0.1
SDP: boot -f u-boot-devkit-recovery.imx
# This command will be run when use SPL
SDPU: delay 1000
SDPU: write -f u-boot-devkit-recovery.imx -offset 0x57c00
SDPU: jump
# This command will be run when ROM support stream mode
SDPS: boot -f 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 devkit.img
FB: Done
EOF
uuu devkit_image/flash_devkit.lst
#+END_SRC
For that purpose the jenkins server is requested to figure out which urls are
to retrieve so it cant be simply replaced. But the current state in jenkins can
be carved in stone - into a shell-script.
With the option `--script-creation` the python-script can be asked to just
create that shell-script. So the flashing can be done from machines where you dont
want to install all the boilerplate of dependencies of that script. Maybe one
day purism will just run that script after succesful build in jenkins to
provide the shell-script (and remove this comment).
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment