Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => AM3352 => Topic started by: ocklin on March 07, 2015, 05:09:21 PM

Title: AM3352 SOM debian sources?
Post by: ocklin on March 07, 2015, 05:09:21 PM
Apologies if I have missed them somewhere but are the Debian sources for the AM335s available somewhere? If not, can you please publish them on github?

The torrent images look a lot like the BB's but there obviously differences.

Thanks,
Bernd
Title: Re: AM3352 SOM debian sources?
Post by: olimex on March 12, 2015, 03:20:26 PM
U-Boot
https://github.com/hehopmajieh/u-boot-2013.10-ti2013.12.01-am3352_som
Kernel
https://github.com/hehopmajieh/linux-3.12.10-ti2013.12.01-am3352_som
Title: Re: AM3352 SOM debian sources?
Post by: vinifr on April 18, 2015, 03:31:47 AM
hi,

How to install the u-boot on the uSD card?

I used these commands:
Code: [Select]
dd if=spl/u-boot-spl.bin of=/dev/sdc bs=1024 seek=8
Code: [Select]
dd if=u-boot.bin of=/dev/sdc bs=1024 seek=32
but does not work.
Title: Re: AM3352 SOM debian sources?
Post by: Chester Gillon on April 18, 2015, 04:40:41 PM
I used these commands:
Code: [Select]
dd if=spl/u-boot-spl.bin of=/dev/sdc bs=1024 seek=8
Code: [Select]
dd if=u-boot.bin of=/dev/sdc bs=1024 seek=32
The files to be transfered to the SD card for uboot on the AM3352 SOM are MLO and u-boot.img. See the "5. Write the Uboot on sd card" instructions on https://www.olimex.com/wiki/Building_Debian_AM3352_SOM (https://www.olimex.com/wiki/Building_Debian_AM3352_SOM) for details.


[Following the instructions on the referenced Wiki page I was able to compile, install and run uboot on am AM3352 SOM]
Title: Re: AM3352 SOM debian sources?
Post by: vinifr on April 20, 2015, 01:26:32 AM
This is very interesting. I have not used dd command, instead I used a simple cp command and works. But I copied the files you mentioned, MLO and u-boot.img, to first fat16 partition.

I followed these instructions: http://www.armhf.com/boards/beaglebone-black/bbb-sd-install/ (http://www.armhf.com/boards/beaglebone-black/bbb-sd-install/)
Title: Re: AM3352 SOM debian sources?
Post by: vinifr on April 20, 2015, 03:31:17 AM
My system is stuck here:

Code: [Select]
[FAILED] Failed to start OpenBSD Secure Shell server.
See 'systemctl status ssh.service' for details.
[ TIME ] Timed out waiting for device dev-ttyO0.device.
[DEPEND] Dependency failed for Serial Getty on ttyO0.
[  OK  ] Reached target Login Prompts.
[  OK  ] Reached target Multi-User System.
[  OK  ] Reached target Graphical Interface.
         Starting Update UTMP about System Runlevel Changes...
[  OK  ] Started Update UTMP about System Runlevel Changes.
Title: Re: AM3352 SOM debian sources?
Post by: ignat99 on April 20, 2015, 01:06:49 PM
May be for some body will interesting haw change the image:

sudo apt-get install p7zip-full
7za e am3352_debian_3_12_vga_1024x768_preliminary_release_3.7z


sudo fdisk -lu ./AM3352_debian_3_12_VGA_1024x768_preliminary_release_3.img

Disk ./AM3352_debian_3_12_VGA_1024x768_preliminary_release_3.img: 2001
MB, 2001731584 bytes
27 heads, 8 sectors/track, 18100 cylinders, total 3909632 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00046134

 Device                                         
./AM3352_debian_3_12_VGA_1024x768_preliminary_release_3.img
Boot             
1
Start
2048
End
3909631
Blocks
1953792
Id
83
System
Linux

Calculate offset - size of sector * Start:
512*2048=1048576

Mount:

sudo sudo losetup -o 1048576 /dev/loop0
./AM3352_debian_3_12_VGA_1024x768_preliminary_release_3.img
mkdir loop
sudo mount /dev/loop0 ./loop/

Check:

ls loop/
bin  boot  dev  etc  home  lib  lost+found  media  mnt  opt  proc
root  run  sbin  srv  sys  tmp  uEnv.txt  usr  var

Unmount:

sudo umount ./loop
sudo losetup -d /dev/loop0
Title: Re: AM3352 SOM debian sources?
Post by: vinifr on June 22, 2015, 12:40:19 AM
[Following the instructions on the referenced Wiki page I was able to compile, install and run uboot on am AM3352 SOM]
Hi Chester,

Are you able to login ttyO0 terminal?
Title: Re: AM3352 SOM debian sources?
Post by: ferhat on March 30, 2016, 11:18:17 AM
Hi,

Are you able to login ttyO0? I have stucked at the same point

My system is stuck here:

Code: [Select]
[FAILED] Failed to start OpenBSD Secure Shell server.
See 'systemctl status ssh.service' for details.
[ TIME ] Timed out waiting for device dev-ttyO0.device.
[DEPEND] Dependency failed for Serial Getty on ttyO0.
[  OK  ] Reached target Login Prompts.
[  OK  ] Reached target Multi-User System.
[  OK  ] Reached target Graphical Interface.
         Starting Update UTMP about System Runlevel Changes...
[  OK  ] Started Update UTMP about System Runlevel Changes.
Title: Re: AM3352 SOM debian sources?
Post by: vinifr on March 30, 2016, 02:29:17 PM
Hi,

Well, now i'm using Beaglebone kernel: https://www.olimex.com/forum/index.php?topic=4942.0 (https://www.olimex.com/forum/index.php?topic=4942.0). I don't have this problem with this kernel.
Title: Re: AM3352 SOM debian sources?
Post by: ferhat on March 30, 2016, 03:22:40 PM
Hi ,
Thank you for the reply.

I am also using this kernel
git://github.com/beagleboard/kernel.git
v3.8.13

and debian8.3 minimal filesys

at first boot I can connect to login screen via serial ttyO0 but when I restart again I could not any more.

What may be the problem?

Title: Re: AM3352 SOM debian sources?
Post by: vinifr on March 30, 2016, 06:33:29 PM
hmm, I see.

In beaglebone kernel you need to use ttyS0 instead ttyO0.  ;)

But that is strange. The kernel version should be 4.1, link: https://github.com/beagleboard/linux (https://github.com/beagleboard/linux)
Title: Re: AM3352 SOM debian sources?
Post by: ferhat on March 31, 2016, 01:34:54 PM
the problem is solved with below kernel patch

https://github.com/gumstix/meta-gumstix/commit/1f2c3a8a1cafd5451ef28584ce7c0d654147a2a8

which states :
Serial TTY (ttyO2 and ttyGS) fail to spawn on 2nd boot without FHANDLE
enabled.