2015-06-08 16:02 GMT+02:00 Baptiste Clenet <[email protected]>: > 2015-06-08 15:23 GMT+02:00 Varka Bhadram <[email protected]>: >> >> On Jun 8, 2015 6:41 PM, "Baptiste Clenet" <[email protected]> wrote: >>> >>> 2015-06-08 14:46 GMT+02:00 Baptiste Clenet <[email protected]>: >>> > 2015-06-08 14:20 GMT+02:00 Varka Bhadram <[email protected]>: >>> >> On 06/08/2015 05:48 PM, Baptiste Clenet wrote: >>> >>> >>> >>> 2015-06-08 14:10 GMT+02:00 Varka Bhadram <[email protected]>: >>> >>>> >>> >>>> On 06/08/2015 05:27 PM, Baptiste Clenet wrote: >>> >>>>> >>> >>>>> 2015-06-08 13:49 GMT+02:00 Baptiste Clenet <[email protected]>: >>> >>>>>> >>> >>>>>> 2015-06-08 10:53 GMT+02:00 Varka Bhadram <[email protected]>: >>> >>>>>>> >>> >>>>>>> On 06/08/2015 01:36 PM, Baptiste Clenet wrote: >>> >>>>>>> >>> >>>>>>>>>> I've edited variable KERNEL_PATCHVER:=3.18 to >>> >>>>>>>>>> KERNEL_PATCHVER:=4.0.4 >>> >>>>>>>>>> in target/Linux/ramips/Makefile in order to get Linux 4.0.4 >>> >>>>>>>>>> installed >>> >>>>>>>>> >>> >>>>>>>>> >>> >>>>>>>>> Also you need to specify the configuration file for 4.0.4 >>> >>>>>>>>> kernel. >>> >>>>>>>>> >>> >>>>>>>>> just copy the file target/linux/ramips/mt7628/config-3.18 as >>> >>>>>>>>> target/linux/ramips/mt7628/config-4.0 >>> >>>>>>>>> >>> >>>>>>>>> I hope it will resolve this error. >>> >>>>>>>>> >>> >>>>>>>>> -- >>> >>>>>>>>> Varka Bhadram >>> >>>>>>>>> >>> >>>>>>>> Thanks Varka, I copied the files, I'm trying to make now. On >>> >>>>>>>> question >>> >>>>>>>> came up, what about patches? There are many patches for Linux >>> >>>>>>>> 3.18, >>> >>>>>>>> is >>> >>>>>>>> there any for Linux 4.0? target/linux/ramips/mt7628 only contains >>> >>>>>>>> a >>> >>>>>>>> folder for 3.18 patches. >>> >>>>>>> >>> >>>>>>> >>> >>>>>>> There may be so-many patches merged into 4.0 from patches-3.18 >>> >>>>>>> directory..? >>> >>>>>>> >>> >>>>>>> I just created a directory with the name patches-4.0 under >>> >>>>>>> target/linux/ramips/ . >>> >>>>>>> >>> >>>>>>> I think its a bad solution. But the build was successful and able >>> >>>>>>> generate >>> >>>>>>> the >>> >>>>>>> binaries in bin/ramips directory. I don't know whether these >>> >>>>>>> binaries >>> >>>>>>> working >>> >>>>>>> or not. I don't have hardware to test these binaries. >>> >>>>> >>> >>>>> Why is it a bad solution? >>> >>>>> >>> >>>>>>> I only copied one patch from patches-3.18 to 4.0 to fix one build >>> >>>>>>> error. >>> >>>>>>> i.e., 0103-MIPS-OWRTDTB.patch >>> >>>>>>> >>> >>> >>> "/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/MT7628.dtb >>> DTB marker not found!" >>> Was it the error? >>> >>> I added 'trunk/target/linux/ramips/patches-4.0/0103-MIPS-OWRTDTB.patch' >>> but it didn't solve the problem. Do I need to tell OPENWRT to use >>> patches-4.0? >>> >> Try >> make target/linux/{clean,prepare} V=s >> make >> >>> Baptiste >>> >>> >>>>>>> Hope it helps. Its just a shoot in the dark for your problem. >>> >>>>>>> >>> >>>>>>> Test it and update the results. >>> >>>>>>> >>> >>>>>>> Thanks >>> >>>>>>> >>> >>>>>>> -- >>> >>>>>>> Varka Bhadram >>> >>>>>>> >>> >>>>>> Without adding the patch 0103-MIPS-OWRTDTB.patch, I got an error: >>> >>>>>> >>> >>>>>> WARNING: kmod-6lowpan-iphc is not available in the kernel config - >>> >>>>>> generating empty package >>> >>>>>> >>> >>>>>> ... >>> >>>>>> >>> >>>>>> ERROR: module >>> >>>>>> >>> >>>>>> >>> >>>>>> '/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-4.0.4/net/bluetooth/rfcomm/rfcomm.ko' >>> >>>>>> is missing. >>> >>>>>> >>> >>>>>> This is about a package I added in menuconfig but I need them. >>> >>>>>> Those >>> >>>>>> package worked well while compiling with Linux 3.18. Any idea? >>> >>>> >>> >>>> >>> >>>> What package did you add..? >>> >>> >>> >>> I added : >>> >>> - kmod-bluetooth >>> >>> - kmod-bluetooth_6lowpan >>> >>> - kmod-6lowpan >>> >>> - kmod-ieee802154 >>> >>> - kmod-ieee802154-6lowpan >>> >>> - kmod-ieee802154-drivers >>> >>> - kmod-mac802154 >>> >>> - kmod-wpan-at86rf230 >>> >>> - iw >>> >>> - wpan-tools >>> >> >>> >> >>> >> These are already came into OpenWrt with [1]. >>> >> >>> >> >>> >> [1]:https://lists.openwrt.org/pipermail/openwrt-devel/2015-April/032515.html >>> >> >>> >> -- >>> >> Varka Bhadram >>> >> >>> > >>> > Yes, I saw, I meant by added "set in menuconfig". >>> > >>> > You meant that with or without those module, it should work? >>> > >>> > Baptiste > > > Thanks Varka for your help! > > It compiles now without those module: > - kmod-bluetooth > - kmod-bluetooth_6lowpan > - kmod-6lowpan > - kmod-ieee802154 > - kmod-ieee802154-6lowpan > - kmod-ieee802154-drivers > - kmod-mac802154 > - kmod-wpan-at86rf230 > - wpan-tools > > It's basically the same conf as yours. > > I don't get why those module would make an error since they worked > well with Linux 3.18. > > Here are my tries: > - kmod-6lowpan > - kmod-ieee802154 > - kmod-ieee802154-6lowpan > - kmod-ieee802154-drivers > - kmod-mac802154 > - kmod-wpan-at86rf230 > - wpan-tools > --> ERROR: module > '/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-4.0.4/net/ieee802154/af_802154.ko' > is missing. > > - kmod-bluetooth > - kmod-bluetooth_6lowpan > - kmod-6lowpan > - kmod-ieee802154 > - kmod-ieee802154-6lowpan > - kmod-ieee802154-drivers > - kmod-mac802154 > - kmod-wpan-at86rf230 > - wpan-tools > --->ERROR: module > '/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-4.0.4/net/bluetooth/rfcomm/rfcomm.ko' > is missing.
Just to let you know the result with a minimal configuration for the MT7628 and Linux 4.0.4: Starting kernel ... [ 0.000000] Linux version 4.0.4 (-@ubuntu) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r45769) ) #1 Mon Jun 8 15:47:55 CEST 2015 [ 0.000000] Board has DDR2 [ 0.000000] Analog PMU set to hw control [ 0.000000] Digital PMU set to hw control [ 0.000000] SoC Type: Ralink MT7628AN ver:1 eco:2 [ 0.000000] bootconsole [early0] enabled [ 0.000000] CPU0 revision is: 00019655 (MIPS 24KEc) [ 0.000000] MIPS: machine is Mediatek MT7628AN evaluation board [ 0.000000] Determined physical RAM map: [ 0.000000] memory: 02000000 @ 00000000 (usable) [ 0.000000] Initrd not found or empty - disabling initrd [ 0.000000] Zone ranges: [ 0.000000] Normal [mem 0x0000000000000000-0x0000000001ffffff] [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000000000000-0x0000000001ffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000001ffffff] [ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes. [ 0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pag es: 8128 [ 0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2 [ 0.000000] PID hash table entries: 128 (order: -3, 512 bytes) [ 0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes) [ 0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.000000] Writing ErrCtl register=00018007 [ 0.000000] Readback ErrCtl register=00018007 [ 0.000000] Memory: 29084K/32768K available (2406K kernel code, 100K rwdata, 472K rodata, 148K init, 180K bss, 3684K reserved, 0K cma-reserved) [ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] NR_IRQS:128 [ 0.000000] intc: using register map from devicetree [ 0.000000] CPU Clock: 580MHz [ 0.000000] clocksource_of_init: no matching clocksources found [ 0.000000] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216) [ 0.060000] pid_max: default: 32768 minimum: 301 [ 0.060000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.070000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.080000] NET: Registered protocol family 16 [ 0.100000] Switched to clocksource MIPS [ 0.110000] NET: Registered protocol family 2 [ 0.110000] TCP established hash table entries: 1024 (order: 0, 4096 bytes) [ 0.130000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes) [ 0.140000] TCP: Hash tables configured (established 1024 bind 1024) [ 0.150000] TCP: reno registered [ 0.160000] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.170000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.180000] NET: Registered protocol family 1 [ 0.190000] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.220000] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.230000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. [ 0.260000] io scheduler noop registered [ 0.260000] io scheduler deadline registered (default) [ 0.270000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled [ 0.290000] console [ttyS0] disabled [ 0.290000] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 28, base_baud = 2500000) is a 16550A [ 0.310000] console [ttyS0] enabled [ 0.310000] console [ttyS0] enabled [ 0.330000] bootconsole [early0] disabled [ 0.330000] bootconsole [early0] disabled [ 0.340000] TCP: cubic registered [ 0.350000] NET: Registered protocol family 17 [ 0.360000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this. [ 0.380000] 8021q: 802.1Q VLAN Support v1.8 [ 0.400000] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6 [ 0.410000] Please append a correct "root=" boot option; here are the available partitions: [ 0.430000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) [ 0.430000] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) [ 82.640000] random: nonblocking pool is initialized _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
