Debian Jessie Image for A20 Lime

Started by carri, December 23, 2020, 11:01:03 AM

Previous topic - Next topic

carri

Hi,
I Have T2-oLinuXino-LIME-e8Gs16M-IND board. I need to install Debian Jessie on it. How can I download the image? I have downloaded Torrent of official Debian Jessie release #9, as explained on https://www.olimex.com/wiki/A20-OLinuXino-LIME#Linux_images but I'm not able to download it. There is another method to got it?

Thank you

LubOlimex

You can find older images for direct download at our FTP:

ftp://staging.olimex.com/Allwinner_Images/A20-OLinuXino-LIME/Debian/sd/

But why do you need that specific image? There are newer images recommended images, Olimage images here:

http://images.olimex.com/release/a20/

and information about Olimage here:

https://olimex.wordpress.com/2020/04/21/olimage-mainline-linux-images-building-script-for-all-of-our-olinuxino-and-som-boards/
Technical support and documentation manager at Olimex

carri

Thank you. I downloaded image and installed it on emmc.
I have another question. How can I export gpio pi16 and pi17. This is what I exported:
ls /sys/class/gpio/
export      gpio1_pg0    gpio2_pg1    gpio3_pg2    gpio4_pg3    gpio5_pg4
gpio10_pg9  gpio20_ph11  gpio30_ph23  gpio40_pb10  gpio50_pi2  gpio60_pi14
gpio11_pc7  gpio21_ph14  gpio31_ph24  gpio41_pb11  gpio51_pi3  gpio61_pi15
gpio12_pc17  gpio22_ph15  gpio32_ph25  gpio42_pb12  gpio52_pi4  gpio6_pg5
gpio13_pc18  gpio23_ph16  gpio33_ph26  gpio43_pb13  gpio53_pi5  gpio7_pg6
gpio14_pc23  gpio24_ph17  gpio34_ph27  gpio44_pb14  gpio54_pi6  gpio8_pg7
gpio15_pc24  gpio25_ph18  gpio35_pb3  gpio45_pb15  gpio55_pi7  gpio9_pg8
gpio16_ph0  gpio26_ph19  gpio36_pb4  gpio46_pb16  gpio56_pi8  gpiochip1
gpio17_ph2  gpio27_ph20  gpio37_pb5  gpio47_pb17  gpio57_pi9  unexport
gpio18_ph9  gpio28_ph21  gpio38_pb6  gpio48_pi0  gpio58_pi10
gpio19_ph10  gpio29_ph22  gpio39_pb7  gpio49_pi1  gpio59_pi11

I can't exoprt pi16 and pi17:
echo 62 > /sys/class/gpio/export
bash: echo: write error: Invalid argument

LubOlimex

Your calculations are incorrect. Read chapter "Accessing the GPIO pins through sysfs with mainline kernel" to find how to calculate GPIO number here:

https://linux-sunxi.org/GPIO#Accessing_the_GPIO_pins_through_sysfs_with_mainline_kernel

(position of letter in alphabet - 1) * 32 + pin number

PI16 is 272 and PI17 is 273.
Technical support and documentation manager at Olimex

carri

There is something wrong because if I export that number it still gives me an error. The calculation of the GPIO number does not coincide with the exported numbers and with the pin number. Why, for example the pi15 is exported with the number 61?
P.S. I am using kernel 3.4.103

LubOlimex

PI16 and PI17 are routed to the SD card at the back, maybe they are defined in the fex for that function and unavailable as GPIO. This is the excerpt:



In older sunxi images (as 3.4.103) you should first edit pins as GPIO pins in the script fex bin before being able to export them. Make sure they are cleared of other functions. You also need to pay attention to hte schematic so you don't accidentally disable important peripherals.

Refer to to these:

https://www.olimex.com/wiki/How_to_edit_board_configurations_and_definitions_in_the_official_Debian_Linux

https://linux-sunxi.org/Fex_Guide
Technical support and documentation manager at Olimex

carri

Thank you. I solved as you suggested  :D