Re: Kernel 3.18
Posted: Mon Nov 24, 2014 5:49 am
A new Nemo patch for the RC6:
Support Forum
https://forum.hyperion-entertainment.com/
https://forum.hyperion-entertainment.com/viewtopic.php?t=2654
Thank you very much for these kind words.ddni wrote:Have to say, despite my reservations about Linux, your hard work and skill is very very impressive!
Good job and thank you.
Code: Select all
diff -rupN linux-3.18/drivers/of/address.c linux-3.18-nemo/drivers/of/address.c
--- linux-3.18/drivers/of/address.c 2014-11-24 00:25:20.000000000 +0100
+++ linux-3.18-nemo/drivers/of/address.c 2014-11-17 01:36:20.000000000 +0100
@@ -450,21 +450,6 @@ static struct of_bus *of_match_bus(struc
return NULL;
}
-static int of_empty_ranges_quirk(void)
-{
- if (IS_ENABLED(CONFIG_PPC)) {
- /* To save cycles, we cache the result */
- static int quirk_state = -1;
-
- if (quirk_state < 0)
- quirk_state =
- of_machine_is_compatible("Power Macintosh") ||
- of_machine_is_compatible("MacRISC");
- return quirk_state;
- }
- return false;
-}
-
static int of_translate_one(struct device_node *parent, struct of_bus *bus,
struct of_bus *pbus, __be32 *addr,
int na, int ns, int pna, const char *rprop)
@@ -490,10 +475,12 @@ static int of_translate_one(struct devic
* This code is only enabled on powerpc. --gcl
*/
ranges = of_get_property(parent, rprop, &rlen);
- if (ranges == NULL && !of_empty_ranges_quirk()) {
+#if !defined(CONFIG_PPC)
+ if (ranges == NULL) {
pr_err("OF: no ranges; cannot translate\n");
return 1;
}
+#endif /* !defined(CONFIG_PPC) */
if (ranges == NULL || rlen == 0) {
offset = of_read_number(addr, na);
memset(addr, 0, pna * 4);
After the compiling the RC6, I done a big test. In this test I also recognized this behavior and then I disabled the PASEMI network chip with the Networkmanager. I wanted to wait on bug reports by other testers.zzd10h wrote: But why does it worked for you ?
Code: Select all
sudo apt-get install gcc-powerpc-linux-gnu
Code: Select all
sudo apt-get install build-essential
Code: Select all
sudo apt-get install libncurses5-dev
Code: Select all
wget www.kernel.org/pub/linux/kernel/v3.x/testing/linux-3.18-rc7.tar.gz
Code: Select all
tar zxvf linux-3.18-rc7.tar.gz
Code: Select all
mv linux-3.18-rc7 linux-3.18
Code: Select all
patch -p0 < nemo_3.18-3.patch
Code: Select all
cp nemo_3.18.0-rc6_KVM-PR_OVERLAYFS.config linux-3.18/.config
Code: Select all
cd linux-3.18
Code: Select all
make CROSS_COMPILE=powerpc-linux-gnu- ARCH=powerpc oldconfig
Code: Select all
make CROSS_COMPILE=powerpc-linux-gnu- ARCH=powerpc vmlinux
Code: Select all
file vmlinux
vmlinux: ELF 64-bit MSB executale, 64-bit PowerPC or cisco 7500, version 1 (SYSV), statically linked, BuildID[sha1]=3cec1ab0e5804eeafbfdcb249c54625336d70a6f, not stripped
Code: Select all
make CROSS_COMPILE=powerpc-linux-gnu- ARCH=powerpc modules
Code: Select all
sudo make CROSS_COMPILE=powerpc-linux-gnu- ARCH=powerpc modules_install
Yes, of course I have a X1000.zzd10h wrote:I don't undesrtand, don't you have a x1000?
zzd10h wrote: I tested your new kernel, all is working (network & sound) fine !
Cross-compiling seems to work