CARAYOL Sophie | 24 Jul 10:09 2014

Booting Linux

Hello,

 

I use the BSP from MBa6X board (Tqma6S):

 

U-Boot 2013.04-20140226

Linux version 3.13.0-ptx20140211-1+tq20140224 (scar <at> scar-HP) (gcc version 4.8.3 20140203 (prerelease) (OSELAS.Toolchain-2013.12.1 linaro-4.8-2014.

 

But I have some problems with booting Linux. You can see traces below and in the joined file.

 

Have you any idea of what the problem is ?

 

Thanks a lot.

 

Sophie

 

systemd[1]: Started Recreate Volatile Files and Directories.

systemd[1]: Starting System Initialization.

systemd-rc-once[125]: running prelink...

[  OK  ] Reached target System Initialization.

systemd[1]: Reached target System Initialization.

systemd-rc-oncesystemd[1]: Starting System Update.

[125]: prelink: /bin/systemd-notify: Using /lib/ld-linux-armhf.so.3, not /lib/ld-linux.so.3 as dynamic linker

systemd-rc-once[125]: prelink: /bin/journalctl: Using /lib/ld-linux-armhf.so.3, not /lib/ld-linux.so.3 as dynamic linker

systemd-rc-once[125]: prelink: /bin/netcat: Using /lib/ld-linux-armhf.so.3, not /lib/ld-linux.so.3 as dynamic linker

systemd-rc-once[125]: prelink: /bin/canecho: Using /lib/ld-linux-armhf.so.3, not /lib/ld-linux.so.3 as dynamic linker

systemd-rc-once[125]: prelink: /bin/canduEXT4-fs error (device mmcblk0p2): ext4_iget:4036: inode #179185: comm prelink: bad extra_isize (61294 != 256)

mp: Using /lib/ld-linux-armhf.so.random: nonblocking pool is initialized

3, not /lib/ld-linux.so.3 as dynamic linker

systemd-rc-once[125]: prelink: /bin/systemd-inhibit: Using /lib/ld-linux-armhf.so.3, not /lib/ld-linux.so.3 as dynamic linker

systemd-rc-once[125]: prelink: /bin/systemd-tty-ask-password-agent: Using /lib/ld-linux-armhf.so.3, not /lib/ld-linux.so.3 as dynamic linker

systemd-rc-once[125]: prelink: /bin/busybox: Using /lib/ld-linux-armhf.so.3, not /lib/ld-linux.so.3 as dynamic linker

systemd-rc-once[125]: prelink: /bin/udevadm: Using /lib/ld-linux-armhf.so.3, not /lib/ld-linux.so.3 as dynamic linker

systemd-rc-once[125]: prelink: /bin/systemd-tmpfiles: Using /lib/ld-linux-armhf.so.3, not /lib/ld-linux.so.3 as dynamic linker

systemd-rc-once[125]: prelink: /bin/systemctl: Using /lib/ld-linux-armhf.so.3, not /lib/ld-linux.so.3 as dynamic linker

systemd-rc-once[125]: prelink: /bin/cansequence: Using /lib/ld-linux-armhf.so.3, not /lib/ld-linux.so.3 as dynamic linker

systemd-rc-once[125]: prelink: /bin/kmod: Using /lib/ld-linux-armhf.so.3, not /lib/ld-linux.so.3 as dynamic linker

systemd-rc-once[125]: prelink: /bin/systemd-ask-password: Using /lib/ld-linux-armhf.so.3, not /lib/ld-linux.so.3 as dynamic linker

[  OK  systemd[1]: Reached target System Update.

] Reached target System Update.

systemd-rc-once[125]: prelink: /bin/cansend: Using /lib/ld-linux-armhf.so.3, not /lib/ld-linux.so.3 as dynamic linker

systemd-rc-once[125]: prelink: /bin/systemd-machine-id-setup: Using /lib/ld-linux-armhf.so.3, not /lib/ld-linux.so.3 as dynamic linker

systemd-rc-once[125]: prelink: /bin/loginctl: Using /lib/ld-linux-armhf.so.3, not /lib/ld-linux.so.3 as dynamic linker

systemd[1]: Started Trigger Flushing of Journal to Persistent Storage.

systemd[1]: Reexecuting.

systemd-rc-once[125]: prelink: /usr/bin/dbus-cleanup-sockets: Using /lib/ld-linux-armhf.so.3, not /lib/ld-linux.so.3 as dynamic linker

systemd-rc-once[125]: prelink: Failed searching /usr/bin: Input/output error

systemd-rc-once[125]: running prelink failed.

mmcblk0: error -84 transferring data, sector 3479552, nr 88, cmd response 0x900, card status 0xc00

end_request: I/O error, dev mmcblk0, sector 3479575

end_request: I/O error, dev mmcblk0, sector 3479576

end_request: I/O error, dev mmcblk0, sector 3479584

end_request: I/O error, dev mmcblk0, sector 3479592

end_request: I/O error, dev mmcblk0, sector 3479600

end_request: I/O error, dev mmcblk0, sector 3479608

end_request: I/O error, dev mmcblk0, sector 3479616

end_request: I/O error, dev mmcblk0, sector 3479624

end_request: I/O error, dev mmcblk0, sector 3479632

mmcblk0: error -84 transferring data, sector 3479648, nr 368, cmd response 0x900, card status 0xc00

end_request: I/O error, dev mmcblk0, sector 3479664

Aborting journal on device mmcblk0p2-8.



Electronica in Munich (Germany), November 11-14, 2014
Join us at our stand A2 459
Pour des raisons légales et de sécurité, les informations contenues dans ce message ne sont pas juridiquement contraignantes. Sur demande, nous vous adresserons une confirmation écrite nous engageant. Les informations contenues dans ce message électronique ont un caractère strictement confidentiel et sont exclusivement destinées à la personne à laquelle il est adressé. Toute divulgation, utilisation, diffusion ou reproduction de tout ou partie de ce message, ou des informations qu'il contient, est interdite. Ce message est destiné exclusivement à la personne à laquelle il est adressé ou son représentant. Si vous recevez ce message par erreur, merci d'en avertir immédiatement l'expéditeur et de détruire ce message.
For legal and security reasons the information provided in this e-mail is not legally binding. Upon request we would be pleased to provide you with a legally binding confirmation in written form. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer..
Aus gesetzlichen und Sicherheitsgründen sind die in dieser Nachricht enthaltenen Informationen rechtlich unverbindlich. Auf Anfrage senden wir Ihnen eine verbindliche, schriftliche Bestätigung. Die in dieser E-Mail enthaltenen Informationen sind streng vertraulich und ausschließlich für den Empfänger bestimmt. Jede vollständige oder teilweise Veröffentlichung, Verwendung, Verbreitung oder Vervielfältigung dieser Nachricht oder der darin enthaltenen Informationen ist untersagt. Diese Nachricht ist ausschließlich für die Person bestimmt, an die sie adressiert ist, oder für ihren Vertreter. Sollten Sie diese Nachricht versehentlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie die Nachricht..
Disclaimer Lacroix Electronics
Attachment (boot device tree kernel.docx): application/vnd.openxmlformats-officedocument.wordprocessingml.document, 34 KiB
Girish Desai | 20 Jul 11:27 2014
Picon

Booting linux 3.12

Hi Juergen,

I am trying to boot linux-3.12 on FriendlyARM mini2440 board.  


in kernelconfig-3.12 file to reduce the kernel size to fit into nand. but it could only reduce from some where around 3.7 MB to around 3.3MB.  and hence still could not fit into NAND.  Thought of changing the size of the nand partition but wanted to get this kernel successfully booted from ram first.

I have applied the patches to linux-3.12 mentioned in the link 

but box freezes after printing "Starting kernel..."  below is the output pasted.. you can see that I have changed 'malloc space' & 'stack space' sizes as I was getting some error saying "Error: out of memory" when I tried manually booting the kernel using 'bootm' command after the uImage-mini2440 is downloaded to ram through TFTP..
=============== Console output: booting kernel 3.12 ===============
barebox 2011.05.0-ptx-2012.12.0 (Jul 19 2014 - 20:51:25)

Board: Mini 2440
NAND device: Manufacturer ID: 0xec, Chip ID: 0xd3 (Samsung NAND 1GiB 3,3V 8-bit)
Bad block table found at page 524224, version 0x01
Bad block table found at page 524160, version 0x01
dm9000 i/o: 0x20000300, id: 0x90000a46 
eth <at> eth0: got MAC address from EEPROM: 00:00:00:00:00:00
refclk:    12000 kHz
mpll:     405000 kHz
upll:      48000 kHz
fclk:     405000 kHz
hclk:     101250 kHz
pclk:      50625 kHz
SDRAM1:   CL2 <at> 101MHz
Malloc space: 0x33500000 -> 0x33f00000 (size 10 MB)
Stack space : 0x334f6000 -> 0x33500000 (size 40 kB)
running /env/bin/init...

Hit any key to stop autoboot:  0
phy0: Link is up - 100/Full
TFTP from server 10.0.0.100 ('uImage-mini2440' -> '/dev/ram0.kernel')
        #################################################################
        #################################################################
        #################################################################
        #################################################################
        #################################################################
        #################################################################
        #################################################################
        #################################################################
        #################################################################
        #################################################################
        ############################
booting kernel of type uimage from /dev/ram0.kernel
   Verifying Checksum ... OK
   Image Name:   Linux-3.12.18-ptx-master
   Created:      2014-07-19  14:38:23 UTC
   Image Type:   <NULL> <NULL> <NULL> (<NULL>)
   Data Size:    3470808 Bytes =  3.3 MB
   Load Address: 30008000
   Entry Point:  30008000
OK
commandline: console=ttySAC0,115200 mini2440=5tbc root=/dev/nfs rw nfsroot=10.0.0.100:/home/girish/FriendlyARM/rootfs ip=10.0.0.101:10.0.0.100)
arch_number: 1999

Starting kernel ...

=============================================================

Could there be any solution/suggestion to this? 
as seen in the forum, kernel linux-3.7 is coming up smoothly.  Issue is in booting linux 3.12

Thanks,
Girish
Girish Desai | 18 Jul 22:58 2014
Picon

Re: Compiling PTXdist

Oh! sorry Dave,  "didn't cc the list" wasn't intentional.. mistakenly hit 'reply' button instead of 'reply all'.(its mid-night here in India :-))

OK thanks I'll look into the link you posted...  I did not dare taking latest versions as I had a little confusion regarding what was displayed on your web site: A warning

Please be aware!

As of October 2013 this board support package with its embedded Mini2440 platform is discontinued. Support for the Mini2440 will be continued as a single platform only. Refer our public GIT service at http://git-public.pengutronix.de/ and the platform-mini2440.git repository for further details.


and some thing that said "Current release is OSELAS.BSP-Pengutronix-Mini2440-2013.10.0.tgz"

any ways.. thanks for the quick response.. I'll check the link you provided.

Thanks,
Girish




On Sat, Jul 19, 2014 at 2:17 AM, dave festing <dave_festing-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote:
You didn't cc the list ... neither did I.  Whare are you located?

Have a look at http://git-public.pengutronix.de/?p=OSELAS.BSP-Pengutronix-Mini2440.git;a=summary

There is a later version of the BSP that will support 3.12

Date: Sat, 19 Jul 2014 02:08:49 +0530

Subject: Re: [oselas] Compiling PTXdist
From: dcgirish16-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
To: dave_festing-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org


Hi Dave,

tool chain im using is.. OSELAS.Toolchain-2013.12.2 (OSELAS.Toolchain-2013.12.2.tar.bz2). 

under the path "OSELAS.BSP-Pengutronix-Mini2440-2013.10.0/configs/platform-friendlyarm-mini2440/patches", I can see patches for linux till "linux-3.11" and nothing for "linux3-12".. is this because of some thing which the kernel is not getting booted?  just a gues..


Thanks,


On Sat, Jul 19, 2014 at 1:51 AM, dave festing <dave_festing <at> hotmail.com> wrote:
Sorry, I might have missed it but which toolchain are you using?


Subject: Re: [oselas] Compiling PTXdist

Hi Dave, 
Thanks for the response but I still had some issues hence manually I downloaded all the required files and build proceeded.. built all the required packages like barebox etc.. now the bootloader coming up without any issues... but the kernel is not booting up... box freezes up saying "Staring Kernel..."  as below.. I am using kernel version 3.12.0.  but kernel 2.6.32 comes up without any issues along with rootfs.  could you please let me know what could be the reason..


============================ Kernel 3.12.0 ================================
=======================================================================
Malloc space: 0x33a00000 -> 0x33e00000 (size  4 MB)
Stack space : 0x339f8000 -> 0x33a00000 (size 32 kB)
running /env/bin/init...

Hit any key to stop autoboot:  1
phy0: Link is up - 100/Full
TFTP from server 10.0.0.100 ('uImage-mini2440' -> '/dev/ram0.kernel')
        #################################################################
        #################################################################
        #################################################################
        #################################################################
        #################################################################
        #################################################################
        #################################################################
        #################################################################
        #################################################################
        #################################################################
        #################################################################
        #################################################
booting kernel of type uimage from /dev/ram0.kernel
   Verifying Checksum ... OK
   Image Name:   Linux-3.12.0
   Created:      2014-07-18  14:16:44 UTC
   Image Type:   <NULL> <NULL> <NULL> (<NULL>)
   Data Size:    3914768 Bytes =  3.7 MB
   Load Address: 31000000
   Entry Point:  31000000
OK
commandline: console=ttySAC0,115200 mini2440=5tbc root=/dev/nfs rw nfsroot=10.0.0.100:/home/girish/FriendlyARM/rootfs ip=10.0.0.101:10.0.0.100)
arch_number: 1999

Starting kernel ...

=======================================================================


========================= Kernel 2.6.32 booting properly along with NFS============
=======================================================================
Hit any key to stop autoboot:  0
phy0: Link is up - 100/Full
TFTP from server 10.0.0.100 ('uImage-mini2440' -> '/dev/ram0.kernel')
        #################################################################
        #################################################################
        #################################################################
        #################################################################
        #################################################################
        #################################################################
        ####################################################
booting kernel of type uimage from /dev/ram0.kernel
   Verifying Checksum ... OK
   Image Name:   
   Created:      2014-07-16  20:35:48 UTC
   Image Type:   <NULL> <NULL> <NULL> (<NULL>)
   Data Size:    2266640 Bytes =  2.2 MB
   Load Address: 3000800c
   Entry Point:  3000800c
OK
commandline: console=ttySAC0,115200 mini2440=5tbc root=/dev/nfs rw nfsroot=10.0.0.100:/home/girish/FriendlyARM/rootfs ip=10.0.0.101:10.0.0.100)
arch_number: 1999

Starting kernel ...

Uncompressing Linux............................................................................................................................
Linux version 2.6.32.2-FriendlyARM (root <at> desai-Inspiron-N5050) (gcc version 4.4.3 (ctng-1.6.1) ) #10 Wed Jul 16 23:34:10 IST 2014
CPU: ARM920T [41129200] re
=======================================================================

There is difference in load address and entry point between the two kernels as seen above but i don't think this makes any difference..


Thanks,
Girish


On Fri, Jul 18, 2014 at 1:59 AM, dave festing <dave_festing-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote:
I sometimes get errors like this on my local mirror.  Is it possible to change to another repository?

Regards,
Dave

Date: Thu, 17 Jul 2014 23:51:18 +0530
From: dcgirish16-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
To: b.buerger <at> pengutronix.de
CC: oselas-/6JGXy0y6WNX4V3MAk3apN53zsg1cpMQ@public.gmane.org
Subject: Re: [oselas] Compiling PTXdist


Hello Bjørn,

thanks for the quick response.. I have done apg-get update.. and I was still not able to get those packages.. below pasted is what is done after getting apg-get update and then tried to install gawk.  Even tried the option of --fix-missing.. still no luck

===========================================================
root <at> desai-Inspiron-N5050:~# apt-get install gawk*
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Note, selecting 'gawk' for regex 'gawk*'
Note, selecting 'gawk-doc' for regex 'gawk*'
The following package was automatically installed and is no longer required:
  openjdk-7-jre-lib
Use 'apt-get autoremove' to remove it.
The following extra packages will be installed:
  libsigsegv2
The following NEW packages will be installed:
  gawk gawk-doc libsigsegv2
0 upgraded, 3 newly installed, 0 to remove and 7 not upgraded.
Need to get 751 kB/3,834 kB of archives.
After this operation, 7,793 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
  libsigsegv2 gawk gawk-doc
Install these packages without verification [y/N]? y
Err http://in.archive.ubuntu.com/ubuntu/ raring/main libsigsegv2 i386 2.9-4ubuntu3
  404  Not Found [IP: 91.189.91.13 80]
Err http://ubuntu.mirror.cambrium.nl/ubuntu/ raring/main libsigsegv2 i386 2.9-4ubuntu3
  404  Not Found [IP: 217.19.16.188 80]
Err http://ubuntu.mirror.cambrium.nl/ubuntu/ raring/main gawk i386 1:4.0.1+dfsg-2ubuntu1
  404  Not Found [IP: 217.19.16.188 80]
Failed to fetch http://ubuntu.mirror.cambrium.nl/ubuntu/pool/main/libs/libsigsegv/libsigsegv2_2.9-4ubuntu3_i386.deb  404  Not Found [IP: 217.19.16.188 80]
Failed to fetch http://ubuntu.mirror.cambrium.nl/ubuntu/pool/main/g/gawk/gawk_4.0.1+dfsg-2ubuntu1_i386.deb  404  Not Found [IP: 217.19.16.188 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

===========================================================


Thanks,
Girish


On Thu, Jul 17, 2014 at 4:00 PM, Bjoern Buerger <b.buerger-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> wrote:
Am Do, 17 Jul 2014 schrieb Girish:
> apt-get install gawk*
> The following NEW packages will be installed:
>   gawk gawk-doc libsigsegv2
> 0 upgraded, 3 newly installed, 0 to remove and 7 not upgraded.
> Need to get 751 kB/3,834 kB of archives.
> After this operation, 7,793 kB of additional disk space will be used.
> Do you want to continue [Y/n]? y
> Err http://in.archive.ubuntu.com/ubuntu/ raring/main libsigsegv2
> i386 2.9-4ubuntu3
>   404  Not Found [IP: 91.189.88.153 80]
> Err http://ubuntu.mirror.cambrium.nl/ubuntu/ raring/main libsigsegv2
> i386 2.9-4ubuntu3
>   404  Not Found [IP: 217.19.16.188 80]
> Err http://ubuntu.mirror.cambrium.nl/ubuntu/ raring/main gawk i386
> 1:4.0.1+dfsg-2ubuntu1
>   404  Not Found [IP: 217.19.16.188 80]
> Failed to fetch http://ubuntu.mirror.cambrium.nl/ubuntu/pool/main/libs/libsigsegv/libsigsegv2_2.9-4ubuntu3_i386.deb
> 404  Not Found [IP: 217.19.16.188 80]
> Failed to fetch http://ubuntu.mirror.cambrium.nl/ubuntu/pool/main/g/gawk/gawk_4.0.1+dfsg-2ubuntu1_i386.deb
> 404  Not Found [IP: 217.19.16.188 80]
> E: Unable to fetch some archives, maybe run apt-get update or try
> with --fix-missing?
> root <at> desai-Inspiron-N5050:/home/girish/FriendlyARM/Pengutronix/ptxdist-2013.09.0#
> =========================================
>
> Is there any alternative to this?

First, try to run "apt-get update" as suggested in the error-message.
Most probably, your apt-cache ist just outdated and apt-get update
will refresh the package lists.

With kind regards,
Bjørn

--
Pengutronix e.K.                           | Bjørn Bürger                |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-5002 |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |





Girish | 17 Jul 09:30 2014
Picon

Compiling PTXdist

Hello,

I downloaded ptxdist-2013.09.0.tar.bz2 and tried to compile.  at 
"./configure" step, getting an error saying

--------------------------------------------------------------
checking whether g++ accepts -g... yes
checking for gawk... no
checking for mawk... mawk
checking for mawk... /usr/bin/mawk
checking awk version... configure: error: we need GNU awk
root <at> desai-Inspiron-N5050:/home/girish/FriendlyARM/Pengutronix/ptxdist-2013.09.0# 

--------------------------------------------------------------

tried installing gawk & mawk but some packages on which these two depend 
does not exist on server to fetch and getting the following error.

=========================================
root <at> desai-Inspiron-N5050:/home/girish/FriendlyARM/Pengutronix/ptxdist-2013.09.0# 
apt-get install gawk*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'gawk' for regex 'gawk*'
Note, selecting 'gawk-doc' for regex 'gawk*'
The following package was automatically installed and is no longer required:
   openjdk-7-jre-lib
Use 'apt-get autoremove' to remove it.
The following extra packages will be installed:
   libsigsegv2
The following NEW packages will be installed:
   gawk gawk-doc libsigsegv2
0 upgraded, 3 newly installed, 0 to remove and 7 not upgraded.
Need to get 751 kB/3,834 kB of archives.
After this operation, 7,793 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Err http://in.archive.ubuntu.com/ubuntu/ raring/main libsigsegv2 i386 
2.9-4ubuntu3
   404  Not Found [IP: 91.189.88.153 80]
Err http://ubuntu.mirror.cambrium.nl/ubuntu/ raring/main libsigsegv2 
i386 2.9-4ubuntu3
   404  Not Found [IP: 217.19.16.188 80]
Err http://ubuntu.mirror.cambrium.nl/ubuntu/ raring/main gawk i386 
1:4.0.1+dfsg-2ubuntu1
   404  Not Found [IP: 217.19.16.188 80]
Failed to fetch

http://ubuntu.mirror.cambrium.nl/ubuntu/pool/main/libs/libsigsegv/libsigsegv2_2.9-4ubuntu3_i386.deb 
404  Not Found [IP: 217.19.16.188 80]
Failed to fetch 
http://ubuntu.mirror.cambrium.nl/ubuntu/pool/main/g/gawk/gawk_4.0.1+dfsg-2ubuntu1_i386.deb 
404  Not Found [IP: 217.19.16.188 80]
E: Unable to fetch some archives, maybe run apt-get update or try with 
--fix-missing?
root <at> desai-Inspiron-N5050:/home/girish/FriendlyARM/Pengutronix/ptxdist-2013.09.0#
=========================================

Is there any alternative to this?

Thanks,
Girish

ian c | 15 Jul 09:12 2014
Picon

virtual router

Hello Experts,

I have an Arm development board running with OSELAS. This board comes with WIFI device. I would like to make
this board as router using virtual router application. In windows, there is virtual router application.
Do you know or somebody able to setup the Arm development board as router using virtual router application?

Thanks!
ian 		 	   		  

Juergen Borleis | 11 Jul 11:47 2014
Picon

[ANNOUNCE] Documentation/Generic BSP update after new PTXdist release

Hi,

since some days ptxdist-2014.07.0 is out at
http://www.pengutronix.de/software/ptxdist/download/

And now also a slightly updated documentation is available here:

http://www.pengutronix.de/software/ptxdist/appnotes_en.html

            How to become a PTXdist Guru
            ----------------------------

This manual is intended for beginners in PTXdist, but also for experts.

For beginners it provides a step by step tutorial how to get a working 
environment and building all the required components to run an embedded 
target.

For the experts this manual provides a PTXdist reference and other helpful 
sections about features the PTXdist-2014 series offer and how to use them.

Comments are welcome, also ideas about topics you miss.

                     OSELAS.BSP-Pengutronix-Generic
                     ------------------------------

Thanks to some spare time an updated OSELAS.BSP-Pengutronix-Generic is now 
available for download. This BSP comes with two generic platforms: i586-PC and 
ARM-versatilepb. They are intended for the beginner in PTXdist and the 
embedded world. Both platforms can be fully tested with QEMU, so no real 
hardware is required. This generic BSP can also act as starting point of your 
own development. Just clone it and adapt it to your needs.

It can be found here:

http://www.oselas.de/oselas/bsp/pengutronix/index_en.html

Comments and contributions are welcome.

Enjoy!
Your Pengutronix Development Team

--

-- 
Pengutronix e.K.                              | Juergen Borleis             |
Industrial Linux Solutions                    | http://www.pengutronix.de/  |

Dave Festing | 28 Jun 06:35 2014
Picon

mtab

I just happened to be looking files in /etc (mini2440 root)
and noticed this entry in mtab (last line):

gvfs-fuse-daemon /home/davef/.gvfs fuse.gvfs-fuse-daemon /
rw,nosuid,nodev,relatime,user_id=1000,group_id=1000 0 0

My first reaction was, because a long while ago I did have
a /home/davef directory on my mini2440, that I would do a
ptxdist clean root and ptxdist go. It is still there.

So, I searched for gvfs-fuse-daemon, read about mtab and
was left wondering "how does this apply to my lil' mini2440
without a desktop"?

It seems more relevant to my Ubuntu desktop.  I don't have
any problem, just curious why that line is there. 

Thanks,
Dave

P.S. "Post a message" wouldn't work for me for most of the last day.  Also
it wouldn't display correctly, but everything looks normal now.

Peter Germer | 18 Jun 14:40 2014
Picon

Mini2440 with 32 bit color depth

Dear List,

I have been struggling with my Mini2440 for a while to get 32 bit color depth support, without any success, so I would like to ask your help or advice how to do that.

I am currently running the latest Friendlyarm kernel (version 2.6.32.2), and in dmesg I can see the following related to the frame buffer:

[    0.460000] s3c2410fb: devinit
[    0.460000] s3c2410fb: got and enabled clock
[    0.470000] s3c2410fb: map_video_memory(fbi=c3856a50) map_size 770048
[    0.470000] s3c2410fb: map_video_memory: clear ffc00000:000bc000
[    0.475000] s3c2410fb: map_video_memory: dma=33a00000 cpu=ffc00000 size=000bc000
[    0.475000] s3c2410fb: got video memory
[    0.475000] s3c2410fb: LPCSEL    = 0x00000f82
[    0.475000] s3c2410fb: replacing TPAL 00000000
[    0.475000] s3c2410fb: check_var(var=c3856820, info=c3856800)
[    0.480000] s3c2410fb: pixclk 40000, divisor is 4
[    0.480000] s3c2410fb: s3c2410fb_activate_var: var->xres  = 800
[    0.480000] s3c2410fb: s3c2410fb_activate_var: var->yres  = 480
[    0.480000] s3c2410fb: s3c2410fb_activate_var: var->bpp   = 16
[    0.480000] s3c2410fb: setting vert: up=26, low=6, sync=2
[    0.480000] s3c2410fb: setting horz: lft=41, rt=68, sync=32
[    0.480000] s3c2410fb: new register set:
[    0.480000] s3c2410fb: lcdcon[1] = 0x00000178
[    0.480000] s3c2410fb: lcdcon[2] = 0x1977c141
[    0.480000] s3c2410fb: lcdcon[3] = 0x021b1f28
[    0.480000] s3c2410fb: lcdcon[4] = 0x0000001f
[    0.480000] s3c2410fb: lcdcon[5] = 0x00000b09
[    0.480000] s3c2410fb: LCDSADDR1 = 0x19d00000
[    0.480000] s3c2410fb: LCDSADDR2 = 0x19d5dc00
[    0.480000] s3c2410fb: LCDSADDR3 = 0x00000320
[    0.505000] fb0: s3c2410fb frame buffer device


When I force my Xorg to run with 32 bits depth, it fails to start.

I am wondering if there is any way to force the board to boot with 32 bit color depth support with any patch/configuration. Does anyone of you tried it or knows how should I do that?

Thank you for any help in advance!

Best regards,
Peter



Guillermo Rodriguez | 13 Jun 13:43 2014
Picon

[PATCH] pmw-samsung: Ensure known output level when idle

Instead of just clearing the START bit to stop the PWM, disable 
the autoreload bit and let it finish the current period. This ensures
that TOUT stays at a known output level after the PWM is stopped,
and is the recommended procedure as per Samsung's technical docs.

This is tested on 3.7 but should be applicable up to 3.11. A similar
fix was implemented in mainline in 3.12.

Signed-off-by: Guillermo Rodriguez <guille.rodriguez@...>
---

Index: linux-3.7/drivers/pwm/pwm-samsung.c
===================================================================
--- linux-3.7.orig/drivers/pwm/pwm-samsung.c	2014-06-10 13:48:04.393351182 +0200
+++ linux-3.7/drivers/pwm/pwm-samsung.c	2014-06-10 13:48:11.212203000 +0200
 <at>  <at>  -66,7 +66,13  <at>  <at> 
 	local_irq_save(flags);

 	tcon = __raw_readl(S3C2410_TCON);
-	tcon |= pwm_tcon_start(s3c);
+	tcon &= ~pwm_tcon_start(s3c);
+	tcon |= pwm_tcon_manulupdate(s3c);
+	tcon |= pwm_tcon_autoreload(s3c);
+	__raw_writel(tcon, S3C2410_TCON);
+	
+	tcon &= ~pwm_tcon_manulupdate(s3c);
+	tcon |= pwm_tcon_start(s3c);	
 	__raw_writel(tcon, S3C2410_TCON);

 	local_irq_restore(flags);
 <at>  <at>  -82,8 +88,11  <at>  <at> 

 	local_irq_save(flags);

+	/* Disable autoreload instead of clearing the 'start' bit to ensure
+	 * that TOUT goes to a known level after the timer is stopped. */
+	 
 	tcon = __raw_readl(S3C2410_TCON);
-	tcon &= ~pwm_tcon_start(s3c);
+	tcon &= ~pwm_tcon_autoreload(s3c);	
 	__raw_writel(tcon, S3C2410_TCON);

 	local_irq_restore(flags);
 <at>  <at>  -115,7 +124,6  <at>  <at> 
 	unsigned long tin_ns;
 	unsigned long period;
 	unsigned long flags;
-	unsigned long tcon;
 	unsigned long tcnt;
 	long tcmp;

 <at>  <at>  -176,21 +184,14  <at>  <at> 
 	if (tcmp < 0)
 		tcmp = 0;

-	/* Update the PWM register block. */
+	/* Update the TCMP/TCNT registers. The rest of the work is done in
+	 * s3c_pwm_enable */

 	local_irq_save(flags);

 	__raw_writel(tcmp, S3C2410_TCMPB(s3c->pwm_id));
 	__raw_writel(tcnt, S3C2410_TCNTB(s3c->pwm_id));

-	tcon = __raw_readl(S3C2410_TCON);
-	tcon |= pwm_tcon_manulupdate(s3c);
-	tcon |= pwm_tcon_autoreload(s3c);
-	__raw_writel(tcon, S3C2410_TCON);
-
-	tcon &= ~pwm_tcon_manulupdate(s3c);
-	__raw_writel(tcon, S3C2410_TCON);
-
 	local_irq_restore(flags);

 	return 0;

Guillermo Rodriguez | 12 Jun 16:31 2014
Picon

Mini2440: Use dhcp in barebox but not in kernel

Hi all,

Currently the default env/config file used in barebox for the mini2440 has the following:

# use 'dhcp' to do dhcp in barebox and in kernel
# use 'none' if you want to skip kernel ip autoconfiguration
ip=dhcp

Is there a way to have barebox use dhcp, but skip kernel ip autoconfiguration ?

Thank you,

Guillermo Rodriguez

nima rahimi | 1 Jun 08:09 2014
Picon

Remote debugging problem with eclipse RSE on mini2440 running Pengutronix Linux

Hi
I Cross compiled pengutronix for Mini2440 board sometimes ago . the project and it's documentation are amazing. thanks a lot to the team for the nice work.

Now I need to develop some C++ app for that mini2440 so I used the Oselas toolchain and target sysroot that created on my PC in OS creation time to cross compile my code on eclipse and it worked fine.
Eclipse has a remote system explorer and some other plugins that help you to setup an environment for automatically deploy the binary to target, run it under gdbserver and  remote debug the application on board. it uses a multiplexed ssh session ( for deployment over sftp, run gdpserver or get the list of target processes with shell commands over ssh,  and etc. ).

the environment I have created works fine with an at91sam9260 based board running a custom angstrom Linux I have compiled using openembedded project. but this setup almost always fail for my mini2440( it works rarely ) after deployment of binary. the binary always load to target successfully but then when eclipse should execute some commands (e.g. chmod +x /path/to/binary) the commands would not execute on 2440. so gdbserver would not run on target and gdb timeouts on PC because of failure to connect to gdbserver.

the ssh sessions will remain after this, so it can't because of ssh disconnection.
this is not the failure of commands in execution their job, simply they don't start to execute.

when I do manually things that eclipse does for start remote debug (below commands) over an ssh connection they work fine.

chmod +x /path/to/binary
gdbserver :2345 /path/to/binary

has any one any idea about it?
any help will be appreciated

Thanks
Nima Rahimi





Gmane