SD/MMC card on Olimex EP9302

I just had a look through the patch file and there are numerous references and changes to the ethernet module - Why are they in there? I would have thought that the ethernet driver has nothing to do with a SPI flash card?

I did notice a “MMC/SD over SPI” option in the kernel config - Maybe we can get this to work?

I have to try and get something working for 2.6.26 soon.

HI FPGA :

“Original 2.6.8 kernel works fine + customized by myself and compiled with Crater - 2.6.17 kernel also works fine”

Can you tell me how to make 2.6.17 kernel working well on Ep9302? Where can i get the source?

yeelive:
HI FPGA :

“Original 2.6.8 kernel works fine + customized by myself and compiled with Crater - 2.6.17 kernel also works fine”

Can you tell me how to make 2.6.17 kernel working well on Ep9302? Where can i get the source?

Just download LATEST 2.6.27.8 kernel from http://kernel.org and use your ARM gcc compiler from Cirrus archives (probably you can use any arm gcc, i’m not sure about this). It will work fine without any special tool or soft… (of course, replace .config file in your linux kernel sources dir with deb93xx default config file - it’s important :slight_smile: ) But ehthernet support will not work on ep9302… You must replace one file in the kernel source to enable ethernet. Later i will give you a link to that file and instructions…

Now you can test kernel without ethernet and filesystem… Ethernet → later, i’m busy now :slight_smile:

FPGA:

yeelive:
HI FPGA :

“Original 2.6.8 kernel works fine + customized by myself and compiled with Crater - 2.6.17 kernel also works fine”

Can you tell me how to make 2.6.17 kernel working well on Ep9302? Where can i get the source?

Just download LATEST 2.6.27.8 kernel from http://kernel.org and use your ARM gcc compiler from Cirrus archives (probably you can use any arm gcc, i’m not sure about this). It will work fine without any special tool or soft… (of course, replace .config file in your linux kernel sources dir with deb93xx default config file - it’s important :slight_smile: ) But ehthernet support will not work on ep9302… You must replace one file in the kernel source to enable ethernet. Later i will give you a link to that file and instructions…

Now you can test kernel without ethernet and filesystem… Ethernet → later, i’m busy now :slight_smile:

Hi FPGA:

Thanks for your answer. I think i should learn base-knowledge first, and do some simple try :slight_smile:

I am waiting for your link:)

Does anybody know where to find the cs-e9302_kernel_config file? I’ve looked everywhere so that means its probably right in front of me…

troynel:
Does anybody know where to find the cs-e9302_kernel_config file? I’ve looked everywhere so that means its probably right in front of me…

Default Linux kernel from site http://kernel.org contain configuration for cs-e9302. You can get it from here (after unpack):

linux-2.6.*/arch/arm/configs/ep93xx_defconfig

Just type:

make xconfig

in linux-2.6.* directory and then locate this file. Then click save. Now your kernel is configured for cs-ep9302. (To use xconfig you must install qt3 development files)

Current kernel configuration is stored in linux-2.6.* directory in invisible file named .config - you can see it when “ls -la”.

You can simply configure your kernel just by copy of file:

cp arch/arm/configs/ep93xx_defconfig .config
```and then optionally type ```
make config
``` - this will promt you for new kernel parameters if they are not assigned...

Now you ready for compiling of your kernel.

<QUOTE>

> Hi FPGA:
> 
> Thanks for your answer. I think i should learn base-knowledge first, and do some simple try Smile
> 
> I am waiting for your link:)

</QUOTE>
We no more need any patch - just download latest kernel from kernel.org (2.6.28.1 - now) - and everything including ethernet will work fine just out of the box - all problems fixed!

Ask questions if you have problems - I'm tracking this topic by e-mail and will answer as soon as possible.

Hello,

I got the same issue with the olimex 9302 to boot on a sd card. Does someone got any progress on that ?

thanks for the answer

roll72:
Hello,

I got the same issue with the olimex 9302 to boot on a sd card. Does someone got any progress on that ?

thanks for the answer

SD card boot is only available if you will use the patch from this topic. But if you need this patch for newest kernels - you must do this work by yourself…

P.S. I did not tested this patch :wink:

hello,

could you kindly indicate me a tutorial or how to to construct and apply this patch for cs 9302? I read all the forum but it is a little confusing, which last post I have to follow ?

I got antoher issue : I not got very often the console on serial port ?

I tried many cables and computer but still the same silent. After booting the card is getting an ip so I could telnet it but I would to have access to redboot in order to make the command.

thanks in advance for your help.

roll72:
hello,

could you kindly indicate me a tutorial or how to to construct and apply this patch for cs 9302? I read all the forum but it is a little confusing, which last post I have to follow ?

To construct patch you must be a programmer and be familiar with Linux kernel programming. To apply patch you must be a simple Linux user because patching is a trivial and simple operation - just search in web “linux apply patch”

I got antoher issue : I not got very often the console on serial port ?

I tried many cables and computer but still the same silent. After booting the card is getting an ip so I could telnet it but I would to have access to redboot in order to make the command.

Probably you have wrong cable… Try to make serial cable yourself (as I do) - power up board and measure voltage on pins… where +10/-10 voltage - it’s a TX from cs-ep9302, and vice versa. Search for serial port pinout and make cable. It’s a pretty simple, really…

Thanks for the answer,

I finally success to install a linux on a flash disk.

I’m wondering, if anyone got some sample of code in C or other language with the olimex CS9302 ?

I’m looking for anything, as well I would like to use the ADC on the expansion port to watch voltage,temperature, etc…

thanks in advance for your help

roll72:
Thanks for the answer,

I finally success to install a linux on a flash disk.

I’m wondering, if anyone got some sample of code in C or other language with the olimex CS9302 ?

I’m looking for anything, as well I would like to use the ADC on the expansion port to watch voltage,temperature, etc…

thanks in advance for your help

You can also install this distribution http://en.wikipedia.org/wiki/Debian to 2 Gb USB Flash with help of this http://www.aurel32.net/info/debian_arm_qemu.php manual.

Also, if you need to recompile your Linux kernel for cs-ep9302 frequently, you can boot Linux kernel from TFTP, but flash filesystem still loaded from USB flash…

And more convenient way is to place your root filesystem (ex with Debian for ARM) on NFS ( http://en.wikipedia.org/wiki/Network_Fi … (protocol) ) - if you need frequent recompilation of you programs during development. Also you can use SMB (CIFS) to mount directories with your programs (which needs to be recompiled many many times… :slight_smile: ) - this will prevent from using flash (because it have limited write/erase resource)…

P.S.

I have not any samples to use ADC and other peripherals… Sorry.

Hi all,

I am also working on cs9302. Stiil trying to get i2c AND usb working at the same time.

I have some examples for accessing gpio from user space here :

http://arlotto.univ-tln.fr/lpaii/tplinu … led_demo.c

I have used uart1 (/dev/ttyMA1) but you must first set bit 21 of DeviceCfg (with software unlock) to make it working. I can post an example if you need.

I have used ADC but the results are not consistent yet. I will post examples if I succed.

Best regards.

Pr. Philippe ARLOTTO

IUT GEII

University Of Toulon

FRANCE

Hello,

did you succeed to make ADC example in source C ?

regards

Hello,

Not yet because I had no time to work on ADC since.

I will post my best results tomorrow but not yet very good.

Phil.

Hi everyone,

I’ve got some issues with the patched SD-card driver.

The device fails to write data and prints the error:

mmcblk0: error -110 sending read/write command
end_request: I/O error, dev mmcblk0, sector xxxxxx

I tried reducing the SPI-frequency (in sources) since this could be a timing error, but it didn’t work.

Did anybody else run into this problem?

I’m looking forward to do some debugging. But since I’m not familiar with “high-level” debugging I’d be glad if somebody could give me a hint or a place to start from. My debug-experience is currently limited to smaller processors without an OS. But equipment (debugger, openOCD based) is available.

regards

cannot download binary images via tftp twice.

How to solve it?

thanks!

Hi,

I’m wondering of getting some thoughts about this CS-E9032 board from all of you here.I’m currently searching for a suitable cct board for my project. Is anyone could fback me on their thought in handling programming thing using this board? Is it easy or complicated?Is there any difficulties during the test?

For information, my project will be working on data transfer from low network to high network.

hope that anyone can help me…

Thx…

Hi!

I’m doing a project with Olimex EP9302 board and I’ve been trying to install a newer kernel with ep93xx configuration, just as FPGA mentioned in this thread, but I can’t seem to boot linux, it just hangs before uncompressing. My goal it’s to boot from an sd card with Debian Etch. This is what I’m doing:

  1. load ramdisk.gz in the Olimex CD and the new zImage created after loading the ep93xx_defconfig present in the linux kernel folders (make xconfig and then load it). The zImage it’s compiled using the arm-linux-gcc-4.1.1 recommended for the board, using this command: make ARCH=arm CROSS_COMPILE=arm-linux-uclibc- zImage

load -r -v -b 0x00042000 zImage

load -r -v -b 0x00800000 ramdisk.gz

exec -r 0x00800000 -s 0x00300000 -b 0x00042000 -l 0x00200000 -c “console=ttyAM0 root=/dev/ram”

And nothing happens.

Can anyone help me through this process, please?

Thanks for your atention!