95719] driver: '8188.ethernet': driver_bound: bound to
device 'xilinx_temac'
[5.495827] bus: 'platform': really_probe: bound device
8188.ethernet to driver xilinx_temac
[5.530592] NET: Registered protocol family 17
Is there something I'm missing abou
ck on whether it worked or not, and it seems so.
--
Guillaume Dargaud
http://www.gdargaud.net/Antarctica/
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev
DEVNAME);
my_cdev = cdev_alloc ();
cdev_init(my_cdev, &fops);
rc=cdev_add (my_cdev, first, count);
rc = driver_register(&xad_driver);
printk(KERN_INFO SD "Driver ready!\n" FL);
cdev_init(my_cdev, &fops);
rc=cdev_add (my_cdev, first, count);
...
rc = of_register_platform_driver(&xad_driver);
...
}
--
Guillaume Dargaud
http://www.gdargaud.net/
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev
_from_ the flash (DI)
So how can I tell the kernel that there's a FAT32 or ext2 filesystem on it
(note, I don't need it as a root/boot
filesystem) ?
Thanks.
--
Guillaume Dargaud
http://www.gdargaud.net/
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev
es me is that:
- my same code on slightly different hardware works perfectly (the differences
are not relevant to the driver but to the
user application).
- a simplified standalone code works (so, non-linux).
--
Guillaume Dargaud
http://www.gdargaud.net/
___
ion ? It's on a raising signal, so I don't see why that should be an issue.
> What HW is this ? What PIC ? It looks like the interrupt source isn't
> masked on the PIC itself while it's being handled or something...
The hardware is a heavily mo
On Tuesday 05 July 2011 16:19:50 Guillaume Dargaud wrote:
> Hello all,
> one of my drivers is causing a kernel panic and I _think_ it happens in the
> 1st call to the interrupt routine. What kind of information can I extract
> from the following ?
> Is it like a core dump that I can
DBG_ADD_CHAR('*');
if (Verbose) printk(KERN_WARNING SD "%dth buffer overflow:
%d-%d=%d>=%d\n" FL,
Xad.Overflow, Xad.Icnt, Xad.Rcnt, Xad.Icnt-Xad.Rcnt,
BUF_NB);
}
wake_up_interruptible(&
e in the dts file.
--
Guillaume Dargaud
http://www.gdargaud.net/
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev
Hello all,
in the most recent versions of the [xilinx powerpc] kernel, there are no boot
messages printed, which make it hard to
debug early problems. What has changed and what can I do in order to get all
the habitual boot messages on the serial
port ?
--
Guillaume Dargaud
http
*match) {
Thanks, that worked...
Side question: how do you guy find your way inside the kernel ? I spent hours
trying to find the declarations of various
basic structs like device, of_node, etc even with ack-grep and ctags (which I
probably don't know how to use very well).
--
Guillaume Dar
declare a probe function in the latest
kernels still stand...
--
Guillaume Dargaud
http://www.gdargaud.net/
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev
e device_node
structure from the of_device one ?
dev->dev is a struct device and there's no device_node info in it...
What has changed ?
[I'm on the latest Xilinx tree, FWIW, so that's 2.6.25 still ?]
--
Guillaume Dargaud
http://www.gdargaud.net/
_
dress 192.168.1.233;
server-name "192.168.1.185";
option host-name "gandalf";
option root-path
"192.168.1.185:/media/gandalf,v3,rsize=1024,wsize=1024,proto=udp,nolock,intr";
}
$ cat /etc/sysconfig/dhcpd
DHCPDARGS=eth1
$ cat /etc/exports
/media
--change-addresses" to relocate the
elf file with success.
> Is configuring the zImage-piggy-back-loader through menuconfig & co evil?
That seems like a good idea. Maybe add some way to figure out if the
uncompressed kernel overlaps the zImage wrapper ?
--
> Isn't that blackfin specific?
So how do you change the loading address of the PowerPC kernel from its default
0x40 address ?
--
Guillaume Dargaud
http://www.gdargaud.net/
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.o
se address
[ ] Set custom user task size
[ ] Set custom consistent memory pool size
--
Guillaume Dargaud
http://www.gdargaud.net/Antarctica/
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev
roved the situation since
then, although I found the CONFIG_BLK_DEV_RAM option.
--
Guillaume Dargaud
http://www.gdargaud.net/
"Freedom is just chaos, with better lighting."
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https:/
emory regions as iomem, do a ioremap
then mmap and vmsplice but that's a
mouthful...
--
Guillaume Dargaud
http://www.gdargaud.net/
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev
000, the kernel stops instantly without even a
blip on the console. A debugger reveals
that it stops at 0x401718... I have no idea what's going on at this stage.
What am I doing wrong ?
--
Guillaume Dargaud
http://www.gdargaud.net/
___
L
g:
Pipe 6/7, base:0x480cf000, size:0x100
vmsplice: Bad address
Any idea what is wrong in my use of vmsplice ?
Thanks
--
Guillaume Dargaud
http://www.gdargaud.net/
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev
Hello all,
I cannot find the option SO_SND_COPYAVOID in socket.h...
Is there another way to do zero-copy network transfers ?
I'm using the 2.6.35 xilinx patched-kernel.
Thanks
--
Guillaume Dargaud
http://www.gdargaud.net/Photo/
___
Linuxpp
target. I'm now
trying to understand how to use oprofile.
--
Guillaume Dargaud
http://www.gdargaud.net/
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev
ELF 32-bit MSB executable, PowerPC or cisco 4500, version 1 (SYSV),
statically linked, with unknown capability 0x4100 = 0x11676e75, with
unknown capability 0x1 = 0x90402, not stripped
I used the vmlinux generated found in ../linus-2.6-xlnx/vmlinux
What's wrong with it ?
--
Gu
memory it uses (to check
for memory leaks) and how much CPU it takes. How ?
Thanks
--
Guillaume Dargaud
http://www.gdargaud.net/Antarctica/
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev
nto the
probe function and can now register my interrupt, yeah!, but I don't see the
ISR being called. I'm currently checking if it can be a hardware problem
before coming back here for more questions !
BTW, is errno/strerror used within the kernel ?
s test prog... no
changes: xad_driver_probe() doesn't get called.
...?
--
Guillaume Dargaud
http://www.gdargaud.net/Antarctica/
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev
/////////
// Called on rmmod
static void xad_exit(void) {
platform_device_unregister(pdev); pdev=NULL;
platform_driver_unregister(&xad_driver);
cdev_del (my_cdev); my_cdev=NULL;
unregister_chrdev_region (first, count);
printk(KERN_INFO SD &quo
Michael,
in your example, when is foo_driver_probe() actually called ?
It's not being called when I do an insmod.
--
Guillaume Dargaud
http://www.gdargaud.net/
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlab
river_register(), not that I'm all clear yet on the
distinction...
Another question: I just spent 10 minutes trying to find where "struct device"
was defined. (ack-)grep was absolutely no use. Isn't there a way to cross-
ata
-r--r--r--1 root root4.0K Dec 6 09:47 devspec
-r--r--r--1 root root4.0K Dec 6 09:47 modalias
-r--r--r-- 1 root root 4.0K Dec 6 09:47 name
lrwxrwxrwx1 root root 0 Dec 6 09:47 subsystem ->
../../../bus/of_platform/
-rw-r--r--
...
Why is there not a word about the functions platform_*_register in my various
driver books ? LDD 3rd ed (O'Reilly), Writing LDD (Cooperstein) or LKD
(Love)... Is it something specific to powerpc and the books are oriented x86 ?
What's a
I want to use irq_of_parse_and_map...
--
Guillaume Dargaud
http://www.gdargaud.net/
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev
Are there some examples of use somewhere ?
> Can your driver tolerate it being shared? If so, request it as shared.
I think so (not sure).
--
Guillaume Dargaud
http://www.gdargaud.net/
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https:/
4 Dec 1 16:26 xlnx,mplb-p2p
-r--r--r--1 root root 4 Dec 1 16:26 xlnx,mplb-smallest-
slave
But first I'm not sure where to find the IRQ in there, and also I'm not sure if
reading the filesystem from a module i
Hello all,
is it OK if I ask basic driver development questions here ?
Could you recommend a better forum for that maybe ?
Thanks
--
Guillaume Dargaud
http://www.gdargaud.net/
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https
Hello all,
I'm sure there's a standard way of doing this: I'd like to access some info
from the DTS file from a usermode program (things like address of device,
etc...)
What is the best way to do this ? Write a parser ? Or query the running kernel
somehow ?
--
Guillau
cture. How do I interact win GPIOs from usermode if not for ioctl calls
? (I need to manipulate the direction bits, not just read/write values).
Note: I'm using the kernel provided by the Xilinx git, so maybe my question
isn't relevant here.
Thanks
--
Guillaume Dargaud
http://w
);
> ...
>
>
> So you have to define one function, console_ops.edit_cmdline -->
> serial_edit_cmdline. Or you can try bind this to your boot console ops
> directly. Please refer to the file, arch/powerpc/boot/serial.c.
So I forced
console_ops.edit_cmdline = s
ONFIG_PPC_WERROR=y
CONFIG_PRINT_STACK_DEPTH=64
CONFIG_DEFAULT_SECURITY_DAC=y
CONFIG_DEFAULT_SECURITY=""
CONFIG_CRYPTO=y
CONFIG_CRYPTO_ALGAPI=y
CONFIG_CRYPTO_ALGAPI2=y
CONFIG_CRYPTO_RNG=y
CONFIG_CRYPTO_RNG2=y
CONFIG_CRYPTO_AES=y
CONFIG_CRYPTO_ANSI_CPRNG=y
--
Guillaume Dargaud
http://www.gdargau
set will be pc address, not 0x4. You can dump your memory to
> check this.
The bootloader has no concept of virtual address, right ?
--
Guillaume Dargaud
http://www.gdargaud.net/
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev
> Please use simpleImage..elf.
Great, that seems to be it...
Except that nothing happens when I jump to 0x4, no message from the
kernel, nothing.
I'm a bit stumped here as my old kernel worked fine.
--
Guillaume Dargaud
http://www.gdar
0x40
How can I change the entry point address ?
--
Guillaume Dargaud
http://www.gdargaud.net/
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev
nel from the
development PC to the memory of my device (and then my own 'one-time-only'
tool to transfer from mem to flash). And the xilinx program refuses that
kernel, complaining that it's not an elf file.
--
Guillaume Dargaud
http:
he PowerPC architecture, but the generated kernel
is different and won't load:
$ file zImage
zImage: u-boot/PPCBoot image
How do I generate an elf file ?
For what it's worth, I use the Xilinx-patched kernel and I load it to a flash
mem using impact.
--
Guillaume Dargaud
htt
of 115000 bauds !!!). But the card goes at normal speed as an ssh
connection shows.
So my question is: is it caused by the fact that there are 2 missing serial
ports ? Will making a new kernel with the correct hardware definition solve
it ?
--
Guillaume Dargaud
http://www.gdargaud.net/
smime.p7s
ds, the equivalent to this:
XGpio IO;
XGpio_Initialize(&IO, Dev);
XGpio_SetDataDirection(&Input, 1, 0x0000);
Data = XGpio_DiscreteRead(&Input, 1);
XGpio_DiscreteWrite(&Output, 1, 0x1278);
Is there anything available from usermode besides those ioctl calls ?
This
t;gdb myapp" locally on the card and I get the prompt. Then I "run"
it and I get dumped back to bash, but a "ps" shows that the app is still
running... Anybody has a clue to what I can do about this ? Is there
something wrong with my gdb (it's compiled as part of bu
up
But I want to do that before the network is up.
What is the relevant kernel section to change in order to set the MAC
address ?
Thanks.
--
Guillaume Dargaud
http://www.gdargaud.net/
___
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev
calling the kernel ?
Thanks a lot for shedding a light on those mysteries.
--
Guillaume Dargaud
http://www.gdargaud.net/
___
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev
ernel
But then it hangs for exactly 3 minutes, nothing on the serial port, before
the bootloader restarts.
Why should the behavior be different whether it's started from the debugger
or from my bootloader ?
--
Guillaume Dargaud
http://w
tree.
Maybe I can just use an elementary approach like that: have the bootloader
write a single byte with the jumper positions somewhere in RAM, and then
have the kernel read it to use for the Mac address. With the flat addressing
it could work if there aren't built-in
the MAC address ?
Maybe the main() of the kernel can receive argv/argc the usual way, and I
just need to call "0x40(argc, argv);" but I have no idea if that works.
Thanks for suggestions.
--
Guillaume Dargaud
http://www.gdargaud.net/
__
x27;t.
--
Guillaume Dargaud
http://www.gdargaud.net/
___
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev
Have you tried compiling the Xilinx git tree ? I'm now using it fine with an
ML405 board and I've seen options for xup in it:
git clone git://git.xilinx.com/linux-2.6-xlnx.git--
Guillaume Dargaud
http://www.gdargaud.net/
___
Linuxppc-d
hey be 3 different calls using different
addresses ?!? Argh, this complete lack of documentation in maddening. Not
everything can be understood from reading the source.
Thanks.
--
Guillaume Dargaud
http://www.gdargaud.net/
___
Linuxppc-dev mailing list
XPAR_GPIO(1),
#endif
#if defined(XPAR_GPIO_2_BASEADDR)
XPAR_GPIO(2),
#endif
--
Guillaume Dargaud
http://www.gdargaud.net/
___
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev
ng the kernel"
I've probably overlooked something obvious, but I'm pretty new in putting my
greasy fingers on delicate kernel internals...
In particular I don't know what is this .num_resources value.
--
Guillaume Dargaud
http://www.gdargaud.net/
_
_MSDOS_PARTITION=y
CONFIG_PLIST=y
CONFIG_HAS_IOMEM=y
CONFIG_HAS_IOPORT=y
CONFIG_HAS_DMA=y
CONFIG_PRINTK_TIME=y
CONFIG_ENABLE_WARN_DEPRECATED=y
CONFIG_ENABLE_MUST_CHECK=y
CONFIG_DEBUG_KERNEL=y
CONFIG_DETECT_SOFTLOCKUP=y
CONFIG_SCHED_DEBUG=y
CONFIG_DEBUG_MUTEXES=y
CONFIG_DEBUG_BUGVERBOSE=y
CONFIG_DEBUG_INFO=y
--
Guillaum
ed my root filesystem with buildroot, but
apparently this leads nowhere as it's not visible in /proc/devices.
Is there some example or tutorial on how to use CONFIG_XILINX_GPIO ? Either
as a device or as API calls...
--
Guillaume Dargaud
http://w
XXX
[ 2201.565826]
And now it's truly well hung.
Problem with init ? The wait reboot is compiled ? The reset vector ?
--
Gu
tem reboot
[ 434.713999] Restarting system.
[ 434.7[ 434.718123] Signal: 4
[ 434.718133] Code: 30001
[ 434.718144] Addr: c74cbdc8
And then it just hangs.
I also tried the additional -n (no sync) and -f (force) without difference.
Design problem ?
Any other way to force a reboot ?
--
Guillaume Da
0/0x18
[ 2340.786397] [c7d0ff40] [c0002c50] ret_from_syscall+0x0/0x3c
[ 2340.791923] Instruction dump:
[ 2340.794865] 3000 7c005a2c 7c00592d 40a2fff0 817f006c 54290024
2f8b 419e0024
[ 2340.802549] 8009000c 5400011e 7cd0 54000ffe <0f00> 7fe3fb78
7d6903a6 4e800421
(192.168.1.185): 29
ers to the EmacLite: IT WORKED !
I'm still having trouble mounting an NFS root and ssh'ing into the target,
but I guess that's another issue...
--
Guillaume Dargaud
http://www.gdargaud.net/
___
Linuxppc-dev mailing list
Linu
OOT_NFS=y
CONFIG_NFS_COMMON=y
Thanks for any hint.
--
Guillaume Dargaud
http://www.gdargaud.net/
___
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev
kernel instead ?
The rational is that I have a working system on a card in my embedded
system, but if possible I'd like to have it boot off the latest version
available on the network.
And if not available, simple boot using fallback parameters.
Makes sense ?
--
Guillaume Dargaud
EBUG_MUTEXES=y
CONFIG_DEBUG_BUGVERBOSE=y
CONFIG_DEBUG_INFO=y
CONFIG_FORCED_INLINING=y
CONFIG_SAMPLES=y
CONFIG_CRYPTO=y
CONFIG_CRYPTO_ALGAPI=y
CONFIG_CRYPTO_BLKCIPHER=y
CONFIG_CRYPTO_MANAGER=y
CONFIG_CRYPTO_MD5=y
CONFIG_CRYPTO_CBC=y
CONFIG_CRYPTO_DES=y
CONFIG_CRYPTO_HW=y
--
Guillaume Dargaud
http://www.gdar
nfsroot=192.168.1.185:/ht
--
Guillaume Dargaud
http://www.gdargaud.net/
___
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev
py/u-boot-1.3.2/.configured]
Error 2
Apparently it expects a BOARD_NAME variable, but I don't know what to put in
it (I looked at the makefile and can't find the ml405 referenced in there).
--
Guillaume Dargaud
http://www.gdargaud.net/
_
aboot. Haven't tried either yet.
Will do on tuesday.
I don't know if Xilinx has another solution (I remember seeing some boot
function in the API, usable from a standalone elf file).
--
Guillaume Dargaud
http://www.gdargaud.net/
___
Linuxppc-d
annot stat `arch/ppc/boot/images/zImage.embedded': No such file or
directory
make[2]: *** [znetboot] Error 1
make[1]: *** [simple] Error 2
make: *** [znetboot] Error 2
is the file zImage.elf my proper network image ?
--
Guillaume Dargaud
http://w
- are they created dynamically by /bin/mdev on boot based on a manually
written /etc/mdev.conf table as the error messages seem to imply ?
- can they be generated automagically by a MAKEDEV script ?
In the second case, how do I know which devices and what names I'm supposed
to defi
ve to work on it...
--
Guillaume Dargaud
http://www.gdargaud.net/Antarctica/
___
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev
040D0
zimage at: 00404E40 0050484E
avail ram: 00508000 0800
Linux/PPC load: console=ttyS0,9600 ip=on root=/dev/sysace/disc0/part2 rw
Uncompressing Linux...done.
Now booting the kernel
And then it stops.
I'm sure I've overlooked something obvious...
Thanks
--
Guillau
Sorry, although it's related to linuxppc, I intended to post this question
to the buildroot mailing list.
--
Guillaume Dargaud
http://www.gdargaud.net/
___
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/lin
config
XILINX_ML405
./project_build_ppc/genepy/linux-2.6.24/arch/ppc/platforms/4xx/Kconfig:config
XILINX_ML405
./toolchain_build_ppc/linux-2.6.24/arch/ppc/platforms/4xx/Kconfig:config
XILINX_ML405
Well, it's no surprise that it won't find them if it looks in the powerpc
branch...
The
erly from one make to the other. Anyone who knows
buildroot care to
comment on that ?
--
Guillaume Dargaud
http://www.gdargaud.net/
___
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev
repository in
/home/guinevere/buildroot/linux-2.6-virtex/.git/
fatal: The remote end hung up unexpectedly
fetch-pack from 'git://git.secretlab.ca/git/linux-2.6-virtex.git' failed.
--
Guillaume Dargaud
http://www.gdargaud.net/
___
Linuxppc
assign nonexistent symbol SERIAL_TEXT_DEBUG
So my question is that even with a full (?) Xilinx kernel, there seems to be
missing drivers. Does this have to do with the BSP ?
Thanks
--
Guillaume Dargaud
http://www.gdargaud.net/
___
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev
atch applies to: it references files such as
ml405_defconfig which are not part of the normal kernel tree and which I
cannot find anywhere. Is there some other kind of patch that needs to apply
first in order to get for instance CONFIG_XILINX_DRIVERS,
CONFIG_XILINX_EMAC, etc...
Thanks
--
Gui
81 matches
Mail list logo