View unanswered posts | View active topics
|
Page 1 of 1
|
[ 2 posts ] |
|
| Author |
Message |
|
Polluks
|
Post subject: NVRAM & Pegasos Posted: 27 Apr 2004, 17:40 |
|
Joined: 26 Feb 2004, 19:42 Posts: 22 Location: Gelsenkirchen, Germany
|
|
Hi! There's something wrong: I have to turn on an ADB option without any ADB hardware :? May an assumption for PowerMac only, see patch...
Working .config: # CONFIG_ADB_CUDA is not set CONFIG_ADB_PMU=y # CONFIG_ADB is not set Can't find NVRAM device
Not working .config: # CONFIG_ADB_PMU is not set pmac_nvram_init() in arch/ppc/platforms/pmac_nvram.c gcc -D__KERNEL__ -I/usr/src/linux-2.4.24-ben1-pegasos/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -I/usr/src/linux-2.4.24-ben1-pegasos/arch/ppc -fsigned-char -msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring -nostdinc -iwithprefix include -DKBUILD_BASENAME=pmac_nvram -DEXPORT_SYMTAB -c pmac_nvram.c pmac_nvram.c: In function `pmac_nvram_init': pmac_nvram.c:531: error: `pmu_nvram_read_byte' undeclared (first use in this function) pmac_nvram.c:531: error: (Each undeclared identifier is reported only once pmac_nvram.c:531: error: for each function it appears in.) pmac_nvram.c:532: error: `pmu_nvram_write_byte' undeclared (first use in this function) make[2]: *** [pmac_nvram.o] Error 1
--- pmac_nvram.c~ 2004-02-23 17:11:30.000000000 +0100 +++ pmac_nvram.c 2004-04-25 17:37:33.000000000 +0200 @@ -526,10 +526,12 @@ nvram_data = ioremap(dp->addrs[1].address, dp->addrs[1].size); ppc_md.nvram_read_val = indirect_nvram_read_byte; ppc_md.nvram_write_val = indirect_nvram_write_byte; +#ifdef CONFIG_ADB_PMU } else if (nvram_naddrs == 0 && sys_ctrler == SYS_CTRLER_PMU) { nvram_naddrs = -1; ppc_md.nvram_read_val = pmu_nvram_read_byte; ppc_md.nvram_write_val = pmu_nvram_write_byte; +#endif /* CONFIG_ADB_PMU */ } else { printk(KERN_ERR "Don't know how to access NVRAM with %d addresses\n", nvram_naddrs);
Greetings from Germany Stefan
|
|
| Top |
|
 |
|
giulivo
|
Post subject: Posted: 27 Apr 2004, 21:18 |
|
Joined: 26 Jan 2004, 18:46 Posts: 143 Location: Italy
|
|
thank you for your message/patch :)
unfortunately the next release of cruxppc will include 2.6 kernel, so probably we can't (if needed) apply your patch as it is now... anyway it's a good help for us :P
regards
|
|
| Top |
|
 |
|
Page 1 of 1
|
[ 2 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 1 guest |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum
|
