Skip to content

Commit 91786c3

Browse files
committed
Add BB information
1 parent ef9f07a commit 91786c3

File tree

4 files changed

+45
-0
lines changed

4 files changed

+45
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ Each field is explained as follows:
151151

152152
[Building custom kernel](kernel/build.md)
153153

154+
[Building busybox](busybox/build.md)
155+
154156
### Debugging
155157

156158
- Debugging on board using gdbserver

busybox/build.md

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
```

reverse/ABI.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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+
|

sensors/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,5 @@ sensor types don't hesitate to make a PR.
5353
## Opensource code
5454

5555
- [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)

0 commit comments

Comments
 (0)