All of lore.kernel.org
 help / color / mirror / Atom feed
* Advice needed.
@ 2007-01-31 16:52 W.P.
  2007-01-31 17:22 ` David Daney
  2007-01-31 21:39 ` Sergio Aguayo
  0 siblings, 2 replies; 23+ messages in thread
From: W.P. @ 2007-01-31 16:52 UTC (permalink / raw)
  To: linux-mips

Hello,
currently i am "fighting" with Edimax BR-6024Wg, (Realtek-8186 based,
lexra-mips). I need an advice from a system developer/programmer:

1). When using original firmware (EDIMAX-developed Linux-mips), task of
upgrading firmware is done by web server binary: webs, which is GoAhead
2.1.1, BUT Edimax didn't published "applets" -> C functions, that
implement real functionality.

2). In /dev directory there is a block node with mtd name. I have cat'ed
it's contents to /web, and downloaded to PC. File seems to be raw
contents of Flash memory: 2048*1024bytes long. If I drop first 64kB and
truncate file to same length that Edimax-supplied firmware, files show
to be the same (using cmp). The first 64kB looks to contain among
others, variables used in BR system. There is originally an utility
"flash" to get/set variables.

Now the question:
When I will have a new firmware (image) will it be safe(!?) to do such
thing: (instead of using webs binary):
cat /dev/mtd > some.file
dd first 64k of some.file to other.file,
then download image (from PC) to a third.file
cat other.file third.file > /dev/mtd back.??????

W.Piotrzkowski

^ permalink raw reply	[flat|nested] 23+ messages in thread
* Re: zImage.elf loads but does not start
@ 2007-05-25 15:23 Mirek23
  2007-05-25 16:56 ` Advice needed Charles Krinke
  0 siblings, 1 reply; 23+ messages in thread
From: Mirek23 @ 2007-05-25 15:23 UTC (permalink / raw)
  To: linuxppc-embedded


Hi Andrei,

     Thank you very much for your suggestion. 
I am very grateful for all of your hints. They were always very valuable to
me.

I have set as you mentioned:
#define XPAR_DDR_0_SIZE                 0x2000000

And now all works fine!!!!

The root file system is mounted and I can execute whatever I like from the
rootfile system.
It was just my mistake that I did not noticed the memory size was wrong :(

After all of that I would like to use the GPIO driver to talk to the FPGA
part of the board.
Do you have some experience with that. 

in my xparameters_ml403.h I have two devices defined: LEDs and SWITCHES as
listed below

/* Definitions for peripheral LEDS_8BIT */
#define XPAR_LEDS_8BIT_BASEADDR 0x40000000
#define XPAR_LEDS_8BIT_HIGHADDR 0x4000FFFF
#define XPAR_LEDS_8BIT_DEVICE_ID 0
#define XPAR_LEDS_8BIT_INTERRUPT_PRESENT 0
#define XPAR_LEDS_8BIT_IS_DUAL 0


/* Definitions for peripheral DIP_SWITCHES_8BIT */
#define XPAR_DIP_SWITCHES_8BIT_BASEADDR 0x40020000
#define XPAR_DIP_SWITCHES_8BIT_HIGHADDR 0x4002FFFF
#define XPAR_DIP_SWITCHES_8BIT_DEVICE_ID 1
#define XPAR_DIP_SWITCHES_8BIT_INTERRUPT_PRESENT 0
#define XPAR_DIP_SWITCHES_8BIT_IS_DUAL 0

#define XPAR_GPIO_0_BASEADDR XPAR_LEDS_8BIT_BASEADDR
#define XPAR_GPIO_0_HIGHADDR XPAR_LEDS_8BIT_HIGHADDR
#define XPAR_GPIO_0_IS_DUAL XPAR_LEDS_8BIT_IS_DUAL
#define XPAR_GPIO_0_DEVICE_ID XPAR_LEDS_8BIT_DEVICE_ID
#define XPAR_GPIO_1_BASEADDR XPAR_DIP_SWITCHES_8BIT_BASEADDR
#define XPAR_GPIO_1_HIGHADDR XPAR_DIP_SWITCHES_8BIT_HIGHADDR
#define XPAR_GPIO_1_IS_DUAL XPAR_DIP_SWITCHES_8BIT_IS_DUAL
#define XPAR_GPIO_1_DEVICE_ID XPAR_DIP_SWITCHES_8BIT_DEVICE_ID

but I do not know how exactly to talk to them by means of the xgpio driver.



Best Regards and many many thanks for your support

Mirek




Andrei Konovalov wrote:
> 
> Mirek,
> 
> Miroslaw Dach wrote:
>> I do not know however if the stack is properly configured since I did not 
>> see any parameter in kernel which refers to the stack or heap. 
>> 
>> My bsp i.e xparameteres_ml403.h contains two macros:
>> #define XPAR_DDR_SDRAM_1_MEM0_BASEADDR 0x00000000
>> #define XPAR_DDR_SDRAM_1_MEM0_HIGHADDR 0x01FFFFFF
>> 
>> I have the feeling that they are ignored because I did not find anywhere 
>> in the kernel source those names. 
>> 
>> When kernel boots it prints at the beginning:
>> loaded at:     00400000 004F9138 
>> board data at: 004F7120 004F7138 
>> relocated to:  00404064 0040407C 
>> zimage at:     00404DF1 004F6BBB 
>> avail ram:     004FA000 04000000 
> 
> Have you fixed this?
> 
> For 32 MBytes of DRAM you should have
>    #define XPAR_DDR_0_SIZE                 0x2000000
> in your xparameters_ml403.h file.
> I can't recall the whole story, but EDK 8.2 doesn't
> add this #define when generating the xparameters file,
> so I had to add this line by hand for EDK 8.2 generated
> files. Probably earlier EDK versions did that automatically.
> 
> But your kernel (the bootwrapper to be precise) wouldn't compile
> if XPAR_DDR_0_SIZE were not defined...
> Do you use uboot?
> 
> Thanks,
> Andrei
> 
> 
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
> 
> 

-- 
View this message in context: http://www.nabble.com/zImage.elf-loads-but-not-starts-tf3607582.html#a10805157
Sent from the linuxppc-embedded mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 23+ messages in thread
* advice needed
@ 2006-01-18 17:10 Babarovic Ivica
  2006-01-18 17:19 ` Bill Unruh
                   ` (4 more replies)
  0 siblings, 5 replies; 23+ messages in thread
From: Babarovic Ivica @ 2006-01-18 17:10 UTC (permalink / raw)
  To: linux-ppp

Hi!

I have a working setup with a vxworks machine sending
data over GPRS modem. It sets up a modem and establish
a ppp link with provider.

Now I have to send some additional data(pictures) which hardware
that vxworks runs on cannot provide. That's why I included a small
industrial board with framegraber an put linux on it. Basically I inserted
this linux box between vxworks box and a GPRS modem connecting
them with serial lines.

Since I need to keep vxworks setup and programs untouched  (it needs to
work as
plug in linux box, plug out linux box) I've come with a following idea.

I made a program that connects serial ports on linux board so vxworks
box can
freely access modem across linux box and initialize it. I'm catching the
"CONNECT" string here  and after that, I break the serial port
connection/exit
program. I start ppp link on serial side towards vxworks and that makes
it happy.

Now the problem comes when I want to attach to a connected stream towards
modem on linux. Remember this stream was created by vxworks box.
I thought I want be having any problems but pppd refuses to connect or
refuses to attach itself to this stream and start ppp negotiation.
I thought pppd will behave similar as when manually dialing to a provider.
Scenario: Minicom, dial, connect, exit minicom, start pppd, ppp link
comes up.

But for some reason pppd refuses this for the stream vxworks box created.

All I get in log is: pppd 2.4.3 started by root, uid 0
no further lines.

Let me add that if I kill this stream somehow(enter minicom and exit)
I can easily establish my own link from scratch. But of course this needs
to be automated. So what do you think is causing pppd not to establish
ppp link with the stream vxworks creates?


I hope I was clear enough since my English is a bit basic. If not please ask
for whatever info you need. I'll provide.


TIA,
I.B.

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2007-05-25 16:56 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-31 16:52 Advice needed W.P.
2007-01-31 17:22 ` David Daney
2007-01-31 18:16   ` W.P.
     [not found]     ` <1170276219.6791.18.camel@localhost>
2007-01-31 21:34       ` W.P.
2007-01-31 21:39 ` Sergio Aguayo
2007-01-31 21:59   ` Florian Fainelli
2007-01-31 22:28     ` W.P.
2007-02-01 13:09       ` Sergio Aguayo
2007-02-01 14:50         ` W.P.
2007-02-02 13:43           ` Sergio Aguayo
     [not found]             ` <45C3BB23.2070309@wp.pl>
2007-02-03  5:57               ` Sergio Aguayo
     [not found]                 ` <45C45DDA.1000805@wp.pl>
2007-02-05 14:34                   ` Sergio Aguayo
2007-02-07 18:07                     ` W.P.
2007-02-08 15:09                       ` Sergio Aguayo
2007-02-08 15:16                       ` Sergio Aguayo
2007-02-08 17:41                         ` W.P.
  -- strict thread matches above, loose matches on Subject: below --
2007-05-25 15:23 zImage.elf loads but does not start Mirek23
2007-05-25 16:56 ` Advice needed Charles Krinke
2006-01-18 17:10 advice needed Babarovic Ivica
2006-01-18 17:19 ` Bill Unruh
2006-01-18 17:35 ` James Carlson
2006-01-19 11:36 ` Babarovic Ivica
2006-01-19 11:41 ` Babarovic Ivica
2006-01-19 17:45 ` Bill Unruh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.