DreamPlug to 3.12.2 – Still Needs Patch… 3.13-rc Compile Fail..
Updated the DreamPlug to kernel 3.12.2, and the orion / mdio patch mentioned in the article for 3.12.1 is still needed.. (http://rglinuxtech.com/?p=941)
I have tried to compile 3.13-rc kernels for the device, but the compilation fails:
/linux-3.13-rc2/arch/arm/include/asm/memory.h: In function ‘__virt_to_phys’: .................. /linux-3.13-rc2/arch/arm/include/asm/memory.h:244:40: error: ‘PHYS_OFFSET’ undeclared (first use in this function)........................ make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1 make: *** [prepare0] Error 2
I need to do more research on this, to see if is a problem with my .config, or a known problem – or a new problem.. There do seem to be several compile failures reported for 3.13-rc kernels, on the LKML (Linux Kernel Mailing List)…
From information received from Adam Baxter, it would appear that the orion / mdio patch is included in 3.12-rc2..
Robert Gadsdon December 1, 2013.
Apologies for the large number of comments but https://lkml.org/lkml/2013/11/13/137 is the only recent reference to PHYS_OFFSET I can find. Just reading up on git-bisect now.
Yes, that was the only specific reference I could find, as well.. I’ll probably post the problem to the ARM kernel mailing list soon..
RG.
Found it:
http://thread.gmane.org/gmane.linux.ports.arm.kernel/282648/focus=282732
Looks like the argument is ongoing, I haven’t checked the commit history for linux-arm yet but adding CONFIG_ARM_PATCH_PHYS_VIRT=y to my config lets 3.13-rc3 build on my machine. No idea if it runs yet.
There are a number of fixes discussed in the mailing list but I don’t see a clear winner or a patch yet.
Thanks for the link… I had searched the group for this, and not found it… maybe the search function is broken? I have already posted a separate message detailing the breakage, but no response – so far..
I’ll try some of the suggested patches, and maybe point out that this is needed for DreamPlug support!
If I set CONFIG_ARM_PATCH_PHYS_VIRT=y the compile works, but the resulting kernel won’t boot on my DreamPlug..
RG.
I’m wary of posting directly to that thread but it might be the best option. I have a feeling the days of the Dreamplug are coming to an end.
Sidenote: With 3.12.3 from Xilka I get
>mvsdio f1090000.mvsdio: unhandled interrupt status=0x0810 en=0x0000 pio=0 ] and a hang – have you ever seen anything like that?
I get the same mvsdio error repeated several times during boot, but the system comes up OK, and the error does not seem to repeat, after that..
I applied the Russell King patch, and now have 3.13-rc3 running..
RG.