You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For notes on my kernel tweaks as well as support matrix, please refer to [BUILDING.md](https://github.com/alexcaoys/notes-superbird/blob/main/BUILDING.md).
11
+
For notes on my kernel tweaks as well as support matrix, please refer to [`BUILDING.md`](BUILDING.md).
Compiled Kernel will be available on Kernel Repo [release](https://github.com/alexcaoys/linux-superbird-6.6.y/releases) section.
20
18
21
-
Since display is only working partially, I don't consider this as good for all users. But you are welcome to try. Hopefully we can get this fix ASAP.
19
+
The only major issue now is the display refresh rate is not considered as 60Hz within the system, not sure what is the actual refresh rate though. Please refer to this [issue](https://github.com/alexcaoys/notes-superbird/issues/3) for details.
20
+
21
+
My Buildroot rootfs is available on this release page. But Buildroot is pretty much a customizable system so do try it out on your own. **It's amazing!**
22
+
23
+
# TL;DR
24
+
25
+
**Beaware of all the consequences and you can get started.**
Please follow the section **Boot using stock partition table** below.
34
+
35
+
## Use the whole eMMC
36
+
37
+
1. Please follow the steps in [`PARTITIONING.md`](partitioning/PARTITIONING.md) to repartition and restore the system image.
38
+
2. send `env/env_full_custom.txt` to the device. Please refer to the section **Boot using custom partition table** below for details.
39
+
3. after login using `ssh`, `/root/first_login.sh` to run some additional touchups.
22
40
23
-
I will consider uploading my Buildroot rootfs to this release page. But Buildroot is pretty much a customizable system so do try it out on your own. **It's amazing!**
41
+
Please read [`BUILDROOT.md`](buildroot/BUILDROOT.md) for additional tips/details, etc.
24
42
25
43
# Boot
26
44
27
45
- pyamlboot: https://github.com/superna9999/pyamlboot (For `pyusb` to work, [please check](https://github.com/pyusb/pyusb/issues/237))
**In order for the display color to work properly, we need to bypass `init_display` within u-boot, you can either**
@@ -48,32 +66,31 @@ I created an Buildroot uInitrd image in case anything need an in-RAM system (rep
48
66
49
67
Please use `python amlogic_device.py -i ENV_FILE KERNEL_FILE INITRD_FILE DTB_FILE` to boot kernel + dtb + uInitrd from host. Please check `initrd` folder.
50
68
51
-
## Boot into stock partitions
69
+
## Boot using stock partition table
52
70
53
71
set `active_slot=_b` and **clear dtbo_b partition**. Otherwise custom dtb won't be loaded.
54
72
55
73
1. Create empty `dtbo_b` and `boot_b` partitions by `dd` and restore to device.
56
74
2. Restore new buildroot partition to `system_b`.
57
75
3. Use `uboot_envs/env_b.txt` in this repo to boot. (`python amlogic_device.py -c ENV_FILE KERNEL_FILE DTB_FILE` to boot kernel + dtb from host)
58
76
59
-
## Boot into custom partitions
77
+
## Boot using custom partition table
60
78
61
-
After **repartitioning** and restoring the rootfs as [`PARTITIONING.md`](https://github.com/alexcaoys/notes-superbird/blob/main/partitioning/PARTITIONING.md).
79
+
After **repartitioning** and restoring the rootfs as [`PARTITIONING.md`](partitioning/PARTITIONING.md).
62
80
63
81
Use `uboot_envs/env_p2.txt` in this repo to boot.
64
82
65
83
-`python amlogic_device.py -c ENV_FILE KERNEL_FILE DTB_FILE` to boot kernel + dtb from host, **OR**
66
-
- Using `fatload` to load kernel and dtb from `mmcblk2p1` and `python amlogic_device.py -m ENV_FILE` to boot. **OR**
67
-
- Send `env/env_full_custom.txt` to the device. Button 4 for burn mode, Normally it will load envs from `bootargs.txt` within `mmcblk2p1` and then boot into `mmcblk2p2` using `Image` and `superbird.dtb` from `mmcblk2p1`.
84
+
- Send `env/env_full_custom.txt` to the device. **Button 4 for burn mode**, Normally it will load envs from `bootargs.txt` within `mmcblk2p1` and then boot into `mmcblk2p2` using `Image` and `superbird.dtb` from `mmcblk2p1`.
Since this should contain all the features needed for **repartitioning and rescue rootfs**, in the future there won't be regular release of initrd. This release will be **all in one**, you still need to install `pyamlboot`, and then, `bash initrd.sh` should help you enter the initramfs.
17
26
@@ -21,8 +30,6 @@
21
30
-`g_ether` will be enabled at boot. `ssh` is available.
Copy file name to clipboardexpand all lines: buildroot/BUILDROOT.md
+6-2
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,7 @@ rootfs_overlay/
24
24
│ │ └── S89bluetooth # using btattach to bring up UART Bluetooth
25
25
│ ├── inittab # auto login
26
26
│ ├── pulse
27
+
│ │ ├── daemon.conf # define default configs for microphone
27
28
│ │ └── system.pa # pulseaudio enable bluetooth for root
28
29
│ ├── resolv.conf # nameserver
29
30
│ └── ssh
@@ -56,8 +57,6 @@ rootfs_overlay/
56
57
└── share
57
58
└── overskride # gresource for overskride
58
59
└── overskride.gresource
59
-
60
-
23 directories, 21 files
61
60
```
62
61
63
62
## GUI Applications
@@ -66,6 +65,11 @@ rootfs_overlay/
66
65
https://lore.kernel.org/buildroot/?q=package%2Fsway:+make+systemd+optional&x=t) for Buildroot. \
67
66
autologin + autolaunch `sway` is included. Please check `buildroot/rootfs_overlay/root/.config/sway/config` for some handy sway setup.
68
67
68
+
1. Button 1 (Leftmost button) for `overskride` bluetooth settings.
69
+
2. Button 2 for a Youtube embed demo (720p is doable).
70
+
3. Button m (Rightmost button) for power on/off screen.
71
+
4. After connect to a bluetooth keyboard, `Windows+Enter` for Terminal
72
+
69
73
### cog
70
74
I include `cog` Browser on Buildroot. It can work on `sway`. \
71
75
Standalone `cog -O renderer=gles` should also work with display & touchscreen. [Cog Docs](https://igalia.github.io/cog/platform-drm.html): not the best docs but works. For touch screen, please check [libinput transformation](https://wiki.archlinux.org/title/libinput#Via_Udev_Rule).
Copy file name to clipboardexpand all lines: partitioning/PARTITIONING.md
+6-7
Original file line number
Diff line number
Diff line change
@@ -54,12 +54,11 @@ My backup `ampart` partitions output is in `ampart_partitions.txt`.
54
54
```
55
55
10. reboot into `burn_mode`.
56
56
11. Restore rootfs using `python amlogic_devices.py -r 319488 rootfs.ext2`. You may also use nfs and `dd` to do it within the initrd system.
57
-
12. Reboot into uInitrd, check the partitions, copy the Image, dtb and `bootargs.txt`(`uboot_envs/env_p2.txt`), which is for loading bootargs dynamically) to the boot partition.
57
+
12. Reboot into uInitrd, check the partitions, copy the Image, dtb and `bootargs.txt`(`uboot_envs/env_p2.txt`), which is for loading bootargs dynamically to the boot partition.
0 commit comments