File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -158,9 +158,59 @@ sudo losetup -D /dev/loop0
158158
159159---
160160
161- # # **Final Notes**
161+ # # **Notes**
162162
163163- All official uConsole OS images can be found here:
164164 [uConsole Images Repository](https://github.com/clockworkpi/uConsole/tree/master/images)
165165
166- - Happy hacking!
166+
167+
168+
169+ # uConsole_CM4_v2.0_64bit.img.7z
170+ Since v2.0, cm4 os image is made by [pi-gen](https://github.com/cuu/pi-gen/tree/uconsole_arm64)
171+
172+ just clone [pi-gen](https://github.com/cuu/pi-gen/tree/uconsole_arm64) repo, branch uconsole_arm64
173+
174+ run ` sudo ./build.sh` in ubuntu linux PC
175+
176+
177+ - kernel source: https://github.com/cuu/ClockworkPi-linux/commit/9a1e3adc9d1431889f62e633ae791bfc9a6cf535
178+ here is kernel compiling commands:
179+ ```
180+ export KERNEL=kernel8
181+ export ARCH=arm64
182+ export CROSS_COMPILE=aarch64-linux-gnu-
183+
184+ make bcm2711_defconfig
185+
186+ make -j4
187+
188+ mkdir -p ../modules
189+ rm -rf ../modules/*
190+
191+ INSTALL_MOD_PATH=../modules make modules_install
192+
193+ mkdir -p ../firmware
194+ rm -rf ../firmware/*
195+ mkdir -p ../firmware/overlays
196+
197+ cp arch/arm64/boot/Image ../firmware/$KERNEL.img
198+ cp arch/arm64/boot/dts/broadcom/* .dtb ../firmware
199+ cp arch/arm64/boot/dts/overlays/* .dtb* ../firmware/overlays/
200+ cp arch/arm64/boot/dts/overlays/README ../firmware/overlays/
201+
202+ KERNEL_VER=$(make kernelrelease)
203+ cp arch/arm64/boot/Image.gz ../vmlinuz-${KERNEL_VER}
204+
205+ cp System.map ../System.map-${KERNEL_VER}
206+ cp .config ../config-${KERNEL_VER}
207+
208+ mkdir -p ../linux-headers-${KERNEL_VER}
209+
210+ make headers_install INSTALL_HDR_PATH=../linux-headers-${KERNEL_VER}
211+ ```
212+
213+
214+
215+
216+ - Happy hacking!
You can’t perform that action at this time.
0 commit comments