Debian with kernel 4.0 and fex script

Started by marpasternak, May 13, 2015, 06:42:53 PM

Previous topic - Next topic

marpasternak

Is it possible to use fex/bin script to boot Debian with kernel 4.0?

Regards,
Marcin

JohnS

I think no.  Use DT (device tree).

John

marpasternak

Thanks for reply. The main problem is that I want to use two ethernet interfaces. Fex file has a easy to understand syntax, and I haven't any problems to adjust it, but I don't know how to modify DT. Could someone provide some informations what I have to do?

Marcin

JohnS

Isn't it in the Linux kernel doc tree?

John

marpasternak

#4
You mean this?:
https://github.com/RobertCNelson/dtb-linux-dev/blob/master/src/arm/sun7i-a20-olinuxino-lime.dts
https://github.com/RobertCNelson/dtb-linux-dev/blob/master/src/arm/sun7i-a20.dtsi

These files are dedicated to Lime platform, and there are information only about Gigabit Ethernet interface. I have A20-SOM board with A20-SOM-EVB, and I want to use Gigabit Ethernet (which already is in A20-SOM-EVB), and normal 100Mbit Ethernet (I made my own module connected to GPIO-3 / PH pins).

In fex file I have:

[emac_para]
emac_used = 1
emac_rxd3 = port:PH08<3><default><default><default>
emac_rxd2 = port:PH09<3><default><default><default>
emac_rxd1 = port:PH10<3><default><default><default>
emac_rxd0 = port:PH11<3><default><default><default>
emac_txd3 = port:PH14<3><default><default><default>
emac_txd2 = port:PH15<3><default><default><default>
emac_txd1 = port:PH16<3><default><default><default>
emac_txd0 = port:PH17<3><default><default><default>
emac_rxclk = port:PH18<3><default><default><default>
emac_rxerr = port:PH19<3><default><default><default>
emac_rxdV = port:PH20<3><default><default><default>
emac_mdc = port:PH21<3><default><default><default>
emac_mdio = port:PH22<3><default><default><default>
emac_txen = port:PH23<3><default><default><default>
emac_txclk = port:PH24<3><default><default><default>
emac_crs = port:PH25<3><default><default><default>
emac_col = port:PH26<3><default><default><default>
emac_reset = port:PH27<1><default><default><default>

[gmac_para]
gmac_used = 1
gmac_rxd3 = port:PA00<5><default><3><default>
gmac_rxd2 = port:PA01<5><default><3><default>
gmac_rxd1 = port:PA02<5><default><3><default>
gmac_rxd0 = port:PA03<5><default><3><default>
gmac_txd3 = port:PA04<5><default><3><default>
gmac_txd2 = port:PA05<5><default><3><default>
gmac_txd1 = port:PA06<5><default><3><default>
gmac_txd0 = port:PA07<5><default><3><default>
gmac_rxclk = port:PA08<5><default><3><default>
gmac_rxerr = port:PA09<0><default><3><default>
gmac_rxctl = port:PA10<5><default><3><default>
gmac_mdc = port:PA11<5><default><3><default>
gmac_mdio = port:PA12<5><default><3><default>
gmac_txctl = port:PA13<5><default><3><default>
gmac_txclk = port:PA14<0><default><3><default>
gmac_txck = port:PA15<5><default><3><default>
gmac_clkin = port:PA16<5><default><3><default>
gmac_txerr = port:PA17<0><default><3><default>


I didn't tested it yet, so it's only an idea.

Edit:
My english isn't perfect and I misunderstood you. You mean I have to search information about modification DT in the Linux kernel doc tree. I will do it.

Marcin