Adrian, Tom,
> Tom
>
> On Wed, Aug 29, 2007 at 11:57:08AM -0400, Tom Mazzotta wrote:
>
>> Subsequent to this test, I noticed that even when using the CPU_GEODE and
>> CPU_SOEKRIS directives to compile a kernel w/ the original geode.c source, I
>> did NOT see the /dev/led devices when booting on a net 4801 (I have both
>> 4801 & 5501 for my testing). No doubt, I'm doing something wrong!
>>
> ... or your BIOS version is different and the OEM BIOS strings have moved
> in this case we would need to enlarge the BIOS address space being groped
> i.e. expand the { 0xf0000, 0xf1000 } range in struct bios_oem bios_soekris
>
No, it's neither a problem of BIOS version, nor a problem of address space.
There are 2 other pbs :
1st => Device IDs are different,
2nd => CS5536 GPIO access method is different from PC87366
Regarding the first problem, and according to AMD documents,
I successfully add code to manage the right Device ID and get the GPIO
address. FreeBSD now reports something like
Geode Soekris net5501 comBIOS ver. .... (can't remember exactly)
Geode GPIO@ = 6100
More over, the /dev/led/error is created, but the led_func has to be
modified.
Now, I'm trying to access GPIO as described in CS5536 datasheet, but for
now, I would like to know on
which GPIO number the LED is connected to. Could someone tell me if it
is GPIO 20 as for the 4801 or something else ?
I will deliver a diff once my code is ok.
Regards,
> In any case, on a net4801 you should see in the dmesg:
> Geode Soekris net4801 comBIOS ver. 1.27a 20041206 Copyright (C) 2000-2004
> otherwise all bets are off with regard to /dev/led/error!
>
> Here are my stats:
>
> On net4801
> comBIOS ver. 1.27a 20041206 Copyright (C) 2000-2004 Soekris Engineering.
> FreeBSD 6.2-STYX-20070430 #0: Tue May 1 05:39:26 UTC 2007
> as well as
> FreeBSD 6.1-STYX-20060705 (STYXMFS) #0: Thu Jul 6 09:36:19 UTC 2006
> (these are custom kernels builds based on FreeBSD on those dates)
> both kernels report from sys/i386/i386/geode.c:
> Geode GPIO@ = 6100
> Geode Soekris net4801 comBIOS ver. 1.27a 20041206 Copyright (C) 2000-2004
> and the led/error device is created:
> $ ls -l /dev/led/error
> crw------- 1 root wheel 0, 32 Sep 3 09:39 /dev/led/error
> and
> # echo d12 >/dev/led/error
> flashes the red LED.
>
> I have in the kernel config:
> cpu I486_CPU
> cpu I586_CPU
> options CPU_SOEKRIS
> options CPU_GEODE
> options CPU_ELAN
> (CPU_ELAN is in there so that the 4501 is supported as well).
>
> On net4501:
> comBIOS ver. 1.22 20031029 Copyright (C) 2000-2003 Soekris Engineering.
> FreeBSD 6.1-STYX-20060705 #0: Thu Jul 6 09:31:22 UTC 2006
> as well as
> FreeBSD 6.2-STYX-20070430 #0: Tue May 1 05:39:26 UTC 2007
>
> reports from sys/i386/i386/elan-mmcr.c:
> Elan-mmcr driver: MMCR at 0xc5b68000.
> Elan-mmcr Soekris net45xx comBIOS ver. 1.22 20031029 Copyright (C) 2000-2003
> and /dev/led/error works as expected
>
> Hope this helps!
> Adrian
> _______________________________________________
> Soekris-tech mailing list
> [email protected]
> http://lists.soekris.com/mailman/listinfo/soekris-tech
>
>
_______________________________________________
Soekris-tech mailing list
[email protected]
http://lists.soekris.com/mailman/listinfo/soekris-tech