Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
freedombone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Context Sensitive Group
freedombone
Commits
5906870e
Commit
5906870e
authored
6 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Support booting beaglebone from external rootfs
parent
66a19288
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/freedombone-image-hardware-setup
+8
-4
8 additions, 4 deletions
src/freedombone-image-hardware-setup
with
8 additions
and
4 deletions
src/freedombone-image-hardware-setup
+
8
−
4
View file @
5906870e
...
...
@@ -40,6 +40,10 @@ enable_serial_console() {
beaglebone_setup_boot
()
{
beaglebone_variant
=
"
$1
"
beaglebone_root_device
=
'mmcblk0p2'
if
[
"
$2
"
]
;
then
beaglebone_root_device
=
"
$2
"
fi
# Setup uEnv.txt
if
grep
-q
btrfs /etc/fstab
;
then
...
...
@@ -60,7 +64,7 @@ beaglebone_setup_boot() {
# uEnv.txt for Beaglebone
# based on https://github.com/beagleboard/image-builder/blob/master/target/boot/beagleboard.org.txt
cat
>>
/boot/uEnv.txt
<<
EOF
mmcroot
=
/dev/
mmcblk0p2
ro
mmcroot
/dev/
${
beaglebone_root_device
}
ro
mmcrootfstype=
$fstype
rootwait fixrtc
mmcrootflags=subvol=@
...
...
@@ -308,19 +312,19 @@ EOF
case
"
$MACHINE
"
in
beagleboneblack
)
beaglebone_setup_boot am335x-boneblack
beaglebone_setup_boot am335x-boneblack
"
$EXTERNAL_DRIVE
"
beaglebone_flash
"TI AM335x BeagleBone Black"
beaglebone_repack_kernel am335x-boneblack
enable_serial_console ttyO0
;;
beaglebonegreen
)
beaglebone_setup_boot am335x-bonegreen
beaglebone_setup_boot am335x-bonegreen
"
$EXTERNAL_DRIVE
"
beaglebone_flash
"TI AM335x BeagleBone Green"
beaglebone_repack_kernel am335x-bonegreen
enable_serial_console ttyO0
;;
beaglex15
)
beaglebone_setup_boot am57xx-beagle-x15
beaglebone_setup_boot am57xx-beagle-x15
"
$EXTERNAL_DRIVE
"
beaglebone_flash
"TI AM5728 BeagleBoard-X15"
beaglebone_repack_kernel am57xx-beagle-x15
enable_serial_console ttyO0
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment