File tree 4 files changed +45
-0
lines changed
4 files changed +45
-0
lines changed Original file line number Diff line number Diff line change @@ -151,6 +151,8 @@ Each field is explained as follows:
151
151
152
152
[ Building custom kernel] ( kernel/build.md )
153
153
154
+ [ Building busybox] ( busybox/build.md )
155
+
154
156
### Debugging
155
157
156
158
- Debugging on board using gdbserver
Original file line number Diff line number Diff line change
1
+ # Building Busybox
2
+
3
+ ``` sh
4
+ cd $SDK_DIR /osdrv/opensource/busybox
5
+ tar xvf busybox-1.20.2.tgz
6
+ cd busybox-1.20.2
7
+ make ARCH=arm CROSS_COMPILE=arm-hisiv500-linux- defconfig
8
+ # use in case you need specify custom configuration for Busybox
9
+ # else just skip it:
10
+ make ARCH=arm CROSS_COMPILE=arm-hisiv500-linux- menuconfig
11
+ LDFLAGS=" --static" make ARCH=arm CROSS_COMPILE=arm-hisiv500-linux- install CONFIG_PREFIX=./_rootfs
12
+ ```
13
+
14
+ ## Building Busybox-only rootfs (Rescue mode)
15
+
16
+ ``` sh
17
+ pushd _rootfs
18
+ mkdir -p proc sys dev etc/init.d usr/lib new
19
+ cat << EOF > etc/init.d/rcS
20
+ #!/bin/sh
21
+ export PATH=/bin:/sbin:/usr/bin:/usr/sbin
22
+ mount -t proc none /proc
23
+ mount -t sysfs none /sys
24
+ /sbin/mdev -s
25
+ EOF
26
+ chmod +x etc/init.d/rcS
27
+ popd
28
+
29
+ mksquashfs _rootfs busybox.squash -comp xz
30
+ # get filesize to use it later in kernel params
31
+ stat -c %s busybox.squash
32
+ sudo mv busybox.squash /srv/atftp
33
+ ```
Original file line number Diff line number Diff line change
1
+ # Platform ABI
2
+
3
+ Only Linux ABI described
4
+
5
+ | ---| ---| ---| ---|
6
+ | Ops | x86 | x86_64 | ARM32 |
7
+ | Registers usage | | | ` r0 ` to ` r3 ` : used to hold argument values passed to a subroutine, and also hold results returned from a subroutine.
8
+ |
Original file line number Diff line number Diff line change @@ -53,3 +53,5 @@ sensor types don't hesitate to make a PR.
53
53
## Opensource code
54
54
55
55
- [ HiSilison sensor support code from OpenIPC project] ( https://github.com/ZigFisher/Glutinium/tree/master/hisi-sensors/src )
56
+
57
+ - [ Sensor drivers from Dafang Hacking] ( https://github.com/EliasKotlyar/Xiaomi-Dafang-Software/tree/master/drivers/sensors )
You can’t perform that action at this time.
0 commit comments