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
cde04397
Commit
cde04397
authored
6 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Simplify
parent
7a4605f0
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
+7
-10
7 additions, 10 deletions
src/freedombone-image-hardware-setup
with
7 additions
and
10 deletions
src/freedombone-image-hardware-setup
+
7
−
10
View file @
cde04397
...
@@ -161,7 +161,6 @@ arm_setup_boot() {
...
@@ -161,7 +161,6 @@ arm_setup_boot() {
arm_fdtaddr
=
'0x47000000'
arm_fdtaddr
=
'0x47000000'
arm_boot_device
=
"mmc
\$
{mmcdev}:
\$
{mmcpart}"
arm_boot_device
=
"mmc
\$
{mmcdev}:
\$
{mmcpart}"
arm_boot_start
=
arm_boot_start
=
arm_boot_dev
=
arm_boot_console
=
'ttyO0,115200n8'
arm_boot_console
=
'ttyO0,115200n8'
arm_arch
=
arm
arm_arch
=
arm
arm_uenv
=
arm_uenv
=
...
@@ -172,21 +171,20 @@ arm_setup_boot() {
...
@@ -172,21 +171,20 @@ arm_setup_boot() {
arm_fdtaddr
=
'0x88000000'
arm_fdtaddr
=
'0x88000000'
arm_uenv
=
1
arm_uenv
=
1
if
[
"
$EXTERNAL_DRIVE
"
]
;
then
if
[
"
$EXTERNAL_DRIVE
"
]
;
then
arm_boot_dev
=
'bootdev=0:1'
arm_boot_device
=
"usb 0:1"
arm_boot_device
=
"usb
\$
{bootdev}"
arm_loadaddr
=
'0x80300000'
arm_loadaddr
=
'0x80300000'
arm_initrd_addr
=
'0x81600000'
arm_initrd_addr
=
'0x81600000'
arm_fdtaddr
=
'0x815f0000'
arm_fdtaddr
=
'0x815f0000'
arm_boot_start
=
'usb start; '
arm_boot_start
=
'usb start; '
fi
fi
;;
;;
"sun"
*
)
{
echo
"rtc_sunxi"
;
"sun"
*
)
arm_boot_device
=
"mmc 0:1"
{
echo
"rtc_sunxi"
;
echo
"vfat"
;
}
>>
/etc/initramfs-tools/modules
echo
"vfat"
;
}
>>
/etc/initramfs-tools/modules
;;
;;
"rk3328-rock64"
)
arm_arch
=
arm64
"rk3328-rock64"
)
arm_arch
=
arm64
cp
/root/
${
PROJECT_NAME
}
/image_build/dts/rk3328-rock64.dtb /boot/dtbs
cp
/root/
${
PROJECT_NAME
}
/image_build/dts/rk3328-rock64.dtb /boot/dtbs
arm_boot_dev
=
'bootdev=0:1'
arm_boot_device
=
"usb 0:1"
arm_boot_device
=
"usb
\$
{bootdev}"
arm_loadaddr
=
'0x80300000'
arm_loadaddr
=
'0x80300000'
arm_initrd_addr
=
'0x81600000'
arm_initrd_addr
=
'0x81600000'
arm_fdtaddr
=
'0x815f0000'
arm_fdtaddr
=
'0x815f0000'
...
@@ -200,7 +198,6 @@ arm_setup_boot() {
...
@@ -200,7 +198,6 @@ arm_setup_boot() {
mmcroot=/dev/
${
arm_root_device
}
ro
mmcroot=/dev/
${
arm_root_device
}
ro
mmcrootfstype=
$fstype
rootwait fixrtc
mmcrootfstype=
$fstype
rootwait fixrtc
mmcrootflags=subvol=@
mmcrootflags=subvol=@
${
arm_boot_dev
}
console=
${
arm_boot_console
}
console=
${
arm_boot_console
}
...
@@ -232,9 +229,9 @@ EOF
...
@@ -232,9 +229,9 @@ EOF
cat
>>
/boot/boot.cmd
<<
EOF
cat
>>
/boot/boot.cmd
<<
EOF
scsi scan
scsi scan
setenv bootargs init=/lib/systemd/systemd console=ttyO0,115200n8 root=/dev/
${
arm_root_device
}
panic=10 rootflags=subvol=@ ro
${
fstype
}
rootwait fixrtc earlyprintk ifnames=0 slub_debug=FZP slab_nomerge page_poison=1
setenv bootargs init=/lib/systemd/systemd console=ttyO0,115200n8 root=/dev/
${
arm_root_device
}
panic=10 rootflags=subvol=@ ro
${
fstype
}
rootwait fixrtc earlyprintk ifnames=0 slub_debug=FZP slab_nomerge page_poison=1
fatload
mmc 0:1
${
arm_fdtaddr
}
/dtbs/
${
dtb
}
.dtb
fatload
${
arm_boot_device
}
${
arm_fdtaddr
}
/dtbs/
${
dtb
}
.dtb
fatload
mmc 0:1
${
arm_loadaddr
}
${
vmlinuz
}
fatload
${
arm_boot_device
}
${
arm_loadaddr
}
${
vmlinuz
}
fatload
mmc 0:1
${
arm_initrd_addr
}
${
initRd
}
fatload
${
arm_boot_device
}
${
arm_initrd_addr
}
${
initRd
}
bootz
${
arm_loadaddr
}
${
arm_initrd_addr
}
:
\$
{filesize}
${
arm_fdtaddr
}
bootz
${
arm_loadaddr
}
${
arm_initrd_addr
}
:
\$
{filesize}
${
arm_fdtaddr
}
EOF
EOF
# Create boot.scr
# Create boot.scr
...
...
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