forked from mohnkhan/openwrt-sunxi
-
Notifications
You must be signed in to change notification settings - Fork 5
/
README.sunxi
52 lines (34 loc) · 1.85 KB
/
README.sunxi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
This is the experimental port of OpenWRT to sun4i platform.
So far it will get you a bootable rootfs and a kernel with modules.
This file has some tips and tricks to get things running.
### Compiling everything ###
* Grab a copy of linux-sunxi kernel tree for github:
https://github.com/linux-sunxi/linux-sunxi
Use sunxi-3.4 branch
* cp config_sunxi .config
* make menuconfig
In advanced development options set the path to your linux-sunxi
kernel tree
* make V=s
* copy kernel and unpack rootfs to a bootable sd card
* adjust uboot bootargs: add init=/etc/preinit (!REQUIRED! Otherwise /proc won't mount)
### Setting board name / board model ###
sunxi-specific scripts extract uboot environment variables 'wrt_name'
and wrt_model and use them in /tmp/sysinfo/
While now only SD card has been tested and the actual name and model play no
big role. yet.
Due to how sunxi kernel works this looks like the best way to set theese so far.
### Known bugs ###
* ipv6 doesn't compile as a module (sunxi kernel bug), so do not enable kmod-ipv6
if you select some packages that require ipv6, they will enable kmod-ipv6. Before
compiling make sure kmod-ipv6=n is manually set in the OpenWrt .config
in target/linux/sunxi/config-3.4 the IPv6 is all enabled statically for now
* usb doesn't work when compiled as a module, built-in for now
* ext4 has to be built-in to boot via ext4, don't enable kmod-ext4
* some sun4i modules like sound, hdmi and mali are missing from openwrt
* for router-like applications we shouldn't allocate memory for mali, kernel patches needed
* iptables package has a few patches to compile cleanly against external kernel tree
### NOTICE ###
Be warned, that this branch is frequently _REBASED_ upon the openwrt trunk.
I do not merge upstream changes to keep the patchset clean for further
mainlining, should it happen any time in future.