[OpenWrt-Devel] Latest OpenWRT on Gemini v4.14
Hans Ulli Kroll
ulli.kroll at googlemail.com
Sat Mar 3 04:00:54 EST 2018
Hi Linus
On Thu, 1 Mar 2018, Linus Walleij wrote:
> On Mon, Feb 26, 2018 at 9:28 PM, Linus Walleij <linus.walleij at linaro.org> wrote:
>
> > I have a forward-port hack-ish thing for Gemini,
> > this 500K patch on top of openwrt HEAD:
> >
> > https://dflund.se/~triad/krad/gemini/0001-gemini-Forward-port-to-v4.14.patch
>
> I updated this big patch with the changes requested:
>
> - Processed config through kernel_oldconfig
> - Processed patches through
> make target/linux/{clean,refresh} V=99
>
> Yours,
> Linus Walleij
Some update form the IB5220 side, on top of your latest patch series from
thursday.
I've disabled Contiguous Memory Allocator, I think we didn't need this
Also I switched to LZMA for kernel compression due some size restrictions
in the bootloader for the kenrel image, this is max. 3MiB
The kernel cmdline is modified to use the generated in flash rootfs and
some small naming issue for the image files is also fixed
The device boots but there is some problem with syscon register which
controls vbus on fotg, I do investigate.
Greetings
Hans-Ulli
---
diff --git a/target/linux/gemini/config-4.14
b/target/linux/gemini/config-4.14 index ca68878965..ee90483eff 100644 ---
a/target/linux/gemini/config-4.14 +++ b/target/linux/gemini/config-4.14 @@
-84,7 +84,7 @@ CONFIG_CIFS_DEBUG=y
CONFIG_CLKDEV_LOOKUP=y
CONFIG_CLKSRC_MMIO=y
CONFIG_CLONE_BACKWARDS=y
-CONFIG_CMA=y
+# CONFIG_CMA is not set
CONFIG_CMA_AREAS=7
# CONFIG_CMA_DEBUGFS is not set
CONFIG_CMDLINE="console=ttyS0,19200n8 root=/dev/sda4 rw rootwait"
@@ -366,7 +366,8 @@ CONFIG_IR_XMP_DECODER=y
CONFIG_JBD2=y
# CONFIG_JFFS2_FS is not set
CONFIG_KALLSYMS=y
-CONFIG_KERNEL_GZIP=y
+# CONFIG_KERNEL_GZIP is not set
+CONFIG_KERNEL_LZMA=y
# CONFIG_KERNEL_XZ is not set
CONFIG_KEXEC=y
CONFIG_KEXEC_CORE=y
diff --git a/target/linux/gemini/image/Makefile b/target/linux/gemini/image/Makefile
index 3cff783fa1..8960f82af6 100644
--- a/target/linux/gemini/image/Makefile
+++ b/target/linux/gemini/image/Makefile
@@ -15,10 +15,10 @@ define Build/raidsonic-images
dd if=$(IMAGE_ROOTFS) of=$(BIN_DIR)/hddapp.tgz bs=6144k count=1 seek=1
cp $(IMAGE_KERNEL) $(BIN_DIR)/zImage
cp ./ImageInfo-ib4220 $(BIN_DIR)/ImageInfo
- (cd $(BIN_DIR); tar -czf $(IMG_PREFIX)-sysupgrade-ib4220.tar.gz ImageInfo zImage rd.gz hddapp.tgz)
- mv $(BIN_DIR)/rd.gz $(BIN_DIR)/$(IMG_PREFIX)-nas4220-rd.gz
- mv $(BIN_DIR)/hddapp.tgz $(BIN_DIR)/$(IMG_PREFIX)-nas4220-hddapp.tgz
- mv $(BIN_DIR)/zImage $(BIN_DIR)/$(IMG_PREFIX)-nas4220-zImage
+ (cd $(BIN_DIR); tar -czf $(IMG_PREFIX)-sysupgrade-ib4220b.tar.gz ImageInfo zImage rd.gz hddapp.tgz)
+ mv $(BIN_DIR)/rd.gz $(BIN_DIR)/$(IMG_PREFIX)-nas4220b-rd.gz
+ mv $(BIN_DIR)/hddapp.tgz $(BIN_DIR)/$(IMG_PREFIX)-nas4220b-hddapp.tgz
+ mv $(BIN_DIR)/zImage $(BIN_DIR)/$(IMG_PREFIX)-nas4220b-zImage
rm -f $(BIN_DIR)/ImageInfo
endef
@@ -67,9 +67,11 @@ define Device/dlink-dns-313
endef
TARGET_DEVICES += dlink-dns-313
+NAS4420B_CMDLINE:=-console=ttyS0,19200n8 root=/dev/mtd2 rw rootwait
define Device/nas4220b
DEVICE_TITLE := Raidsonic NAS IB-4220-B
IMAGES += raidsonic-image
+ CMDLINE := $(NAS4420B_CMDLINE)
IMAGE/raidsonic-image := raidsonic-images
endef
TARGET_DEVICES += nas4220b
--
2.16.2
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list