Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
reform-system-image
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
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
Adam Chasen
reform-system-image
Commits
a41a1f82
Commit
a41a1f82
authored
4 years ago
by
minute
Browse files
Options
Downloads
Patches
Plain Diff
rename mkreform.sh to makeimage.sh and clean it up a bit
parent
47d554e6
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
emulate.sh
+0
-5
0 additions, 5 deletions
emulate.sh
mkdeps.sh
+0
-8
0 additions, 8 deletions
mkdeps.sh
mkimage.sh
+6
-6
6 additions, 6 deletions
mkimage.sh
with
6 additions
and
19 deletions
emulate.sh
deleted
100755 → 0
+
0
−
5
View file @
47d554e6
#!/bin/bash
# stty intr ^]
qemu-system-arm
-M
virt
-m
2048
-kernel
linux/arch/arm/boot/zImage
-drive
if
=
none,file
=
reform-system.img,format
=
raw,id
=
hd
-device
virtio-blk-device,drive
=
hd
-netdev
user,id
=
mynet,hostfwd
=
tcp:127.0.0.1:10022-:22
-device
virtio-net-device,netdev
=
mynet
-append
"console=ttyAMA0,115200 root=/dev/vda1 single"
-serial
stdio
-no-reboot
-monitor
none
-nographic
-smp
4
This diff is collapsed.
Click to expand it.
mkdeps.sh
deleted
100755 → 0
+
0
−
8
View file @
47d554e6
#!/bin/sh
set
-x
set
-e
sudo
apt
install
parted multistrap udisks2 gcc-aarch64-linux-gnu
git submodule update
--init
--recursive
This diff is collapsed.
Click to expand it.
mk
reform
.sh
→
mk
image
.sh
+
6
−
6
View file @
a41a1f82
...
...
@@ -3,18 +3,18 @@
set
-x
set
-e
./mkdeps.sh
./mkkernel.sh
# TODO make kernel 2 times, once with LOADADDR for target and once for virt
sudo
apt
install
parted multistrap udisks2 gcc-aarch64-linux-gnu
./mkkernel.sh
./mkuboot.sh
sudo
./mkuserland.sh
sudo
./mkuserland2.sh
mkdir
-p
target
# DEPS: parted multistrap udisksctl g++-arm-linux-gnueabihf
# change 16000 below to the number of megabytes your image file should have
# change 8000 below to the number of megabytes your image file should have
if
[
!
-f
reform-system.img
]
;
then
dd
if
=
/dev/zero
of
=
reform-system.img
bs
=
1M
count
=
0
seek
=
4
000
dd
if
=
/dev/zero
of
=
reform-system.img
bs
=
1M
count
=
0
seek
=
8
000
else
echo
"reform-system.img already exists. Delete it if you want to change the image size."
fi
...
...
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