Mini2440: Free Board Support Package released

Juergen Beisert
Pengutronix offers a free Board Support Package for the popular
FriendlyARM's Mini2440. It provides all required components to get this
embedded target up and running, and is dedicated for beginners in the
embedded world. And for the experienced user it can act as a quick start
for her/his own development as well.

Feature List:
-------------

- PTXdist[1] based buildsystem for easy setup and build
- recent GCC Toolchain (GCC 4.5.2, libc 2.13) [2]
- Bootloader: Recent 'barebox' 2011.05.0 [3]
  Support for the following list of hardware components:
  - serial console
  - network
  - SD card
  - NAND
- Kernel: Recent 2.6.38 Linux (including stable releases)
  Support for the following list of hardware components:
  - serial console
  - network
  - sound
  - LED
  - GPIO
  - USB (host)
  - various LC displays
  - framebuffer
  - touch
  - SD card
  - NAND
- Comprehensive documentation how to prepare and build all software
  components and to deploy the Mini2440 to make it work.

Additional info can be found here:

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

Comments are welcome.

[1] http://www.oselas.org/software/ptxdist/index_en.html
[2] http://www.oselas.org/oselas/toolchain/index_en.html
[3] http://www.barebox.org/

open-nandra
Great, hopefully first BSP which could be just download, setup, build and
used. Thumb up for Pengutronix to share knowledge. 

marek

Daniel
Hi Jürgen,

Is Pengutronix ever going to be releasing a version of the BSP suitable for
the Mini6410 platform? I haven't taken a look deeper into this, but would
it be easy to adapt this package to support the Mini6410? 

Daniel

Juergen Beisert
Yes, we are going to provide a BSP for the Mini6410 as well. But it takes
time to do so. Maybe in July.

Juergen Beisert
For the interested: I just added the recent Linux-2.6.39 kernel to the
repository to run on the Mini2440. Testers are welcome. The new kernel will
also be part of the next release of the board support package next month.
The GIT repository can be found here: http://git-public.pengutronix.de/

Juergen Beisert
For the interested: I just added the recent Linux-2.6.38.7 stable to the
repository and some additional patches to fix OOB and touch handling in
both kernels (the OOB fix also for the bootloader). The Mini2440 GIT
repository can be found here: http://git-public.pengutronix.de/

Juergen Beisert
For the interested: I just made the June release of our free Board Support
Package for the FriendlyARM's Mini2440. Updated features are:

- Kernel 2.6.39, stable release 1
- Kernel 2.6.38, stable release 8
- more info added to the included manual:
  - how to use the processor's ADC feature
  - how to use Mini2440's key buttons
  - using Mini2440's sound capabilities
  - about the bootloader Barebox
- PTXdist-2011.06.0

Additional info can be found here:
http://www.oselas.org/oselas/bsp/pengutronix/index_en.html

kaushal
Can some one find me header file for using 4.3" TFT LCD with Mini2440.

If it is in the patch files, how to extract it?

Thanks,
Kaushal

Juergen Beisert
Kaushal,

some more info about this display would help. The comments in the platform
code do not really help, what kind of display they support:

 - mini2440 + 3.5" TFT + touchscreen
 - mini2440 + 7" TFT + touchscreen
 - VGA shield
 - mini2440 + 3.5" TFT + TS -- New model as Nov 2009 "T35"
 - mini2440 + 5.6" TFT + touchscreen -- Innolux AT056TN52
 - mini2440 + 3,5" TFT + touchscreen -- SONY X35
 - LCD-W35i 3.5" display (LQ035Q1DG06)

These are currently supported. Is your display in the list?

rudi
hi jürgen,

thanks for sharig your work!

i got a question about your kernelconfig

my mini2440 is up and running with lenny for 1 year now 2.6.32
i treid the kernel 2.6.39.1 out today with your kernelconfig-2.6.39 from
your git.

i applied the PATCH_1_4 - PATCH_4_4 from your git, worked

patch enable_screen_without_console.diff i got the error
Hunk #1 FAILED at 982.
1 out of 1 hunk FAILED -- saving rejects to file
drivers/video/s3c2410fb.c.rej

i then made a 
......arm-none-linux-gnueabi- ARCH=arm make kernelconfig-2.6.39

compiled the kernel etc... an boot up.

everything is up and running except my lcd 35

in the old kernel the bootarg for uboot was 3tb and in the file
mach-mini2440.c it is still the same lcd (mini2440 + 3.5" TFT + TS -- New
model as Nov 2009 "T35")

blacklight is on but nothing else, no tux at bootup, nothing,
backlight stay on and dont switch off after a few minutes like with the old
kernel.

i also post a few bootmsg, maybe you know what i am missing.

## Booting kernel from Legacy Image at 32000000 ...
   Image Name:   Linux-2.6.39.1
   Created:      2011-06-19  11:14:34 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1602660 Bytes =  1.5 MB
   Load Address: 30008000
   Entry Point:  30008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
......
Kernel command line: console=ttySAC0,115200 root=/dev/mmcblk0p3
rootfstype=ext3 mini2440=3tb rw rootwait
......
console [ttySAC0] enabled
Calibrating delay loop... 201.52 BogoMIPS (lpj=503808)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
devtmpfs: initialized
NET: Registered protocol family 16
MINI2440: Option string mini2440=3tb
MINI2440: LCD
 0:240x320
 1:800x480
 2:1024x768
 [3:240x320]
 4:640x480
 5:240x320
........
fb0: s3c2410fb frame buffer device
.........
samsung-ts s3c2440-ts: driver attached, registering input device
input: S3C24XX TouchScreen as /devices/virtual/input/input1

danke
rudi

Juergen Beisert
> in the old kernel the bootarg for uboot was 3tb and in the file
> mach-mini2440.c it is still the same lcd (mini2440 + 3.5" TFT + TS --
> New model as Nov 2009 "T35")
>
> blacklight is on but nothing else, no tux at bootup, nothing,
> backlight stay on and dont switch off after a few minutes like with the
> old kernel.

Run fbtest or ts_calibrate. I kept the screen empty, no user of the
framebuffer is enabled. That is why the screen do not switch off
(framebuffer console is disabled, this is the cause for the switch off).

rudi
ok thanks got that, now up and running :-)

Juergen Beisert
For the interested: I just made the July release of our free Board Support
Package for the FriendlyARM's Mini2440. Updated features are:

- PTXdist-2011.07.0 (buildsystem)
  - Qt 4.7.3
- more than one predefined configuration
  - one without graphic, for headless usage
  - one with full blown Qt support including an example how to use it
- Notes added:
  - how to use the Mini2440 as a USB gadget
  - how to update individual software parts
  - how control the LCD backlight
  - environment variables used by Qt at runtime

Additional info can be found here:
http://www.oselas.org/oselas/bsp/pengutronix/index_en.html

davef
It just keeps getting better and better!

Two years of struggling with infrequent releases and ZERO documentation and
now this BSP is released on a monthly basis with useful documentation.

Great going, Pengutronix!

fatbrain
Hi Juergen 
Does the QT build of the BSP support audio playback via QT applications,
that is using QT Phonon  framework to play audio files.

thanks--

Juergen Beisert
fatbrain,

sorry, I'm not a Qt expert. Audio works on the Mini2440. But I don't know
if Qt can handle it. The focus of the current release was on the graphic.
"[ ] Phonon" is one of the entries in the Qt selection menu in PTXdist.
Maybe you can give it a try by enabling it.

fatbrain
Hi Juergen,
I got this error while building 2011.07.0

--2011-07-14 12:48:47-- 
http://www.pengutronix.de/software/ptxdist/temporary-src/mtd-utils-1.3.1...
Resolving www.pengutronix.de... 78.47.139.85,
2a01:4f8:121:2:5054:ff:feaf:fc62
Connecting to www.pengutronix.de|78.47.139.85|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2011-07-14 12:48:47 ERROR 404: Not Found.


how do i fix it?

I will certainly try Phonon with QT  it requires gstreamer to work.

thanks

Juergen Beisert
You should try the mailling list for such reports, as I read this forum
less frequently. Seems the mtd-Archive was moved. As a fast workaround you
can try to load it from anywhere and store it to the directory with all the
other archives (BTW: You should define a global directory for the archives,
just to download each archive only once. Refer "ptxdist setup").

Juergen Beisert
Seems the server was down. Try again. Maybe you also need some proxy
settings in PTXdist to make the download work

Dave Festing
I posted a brief How to setup NFS for PTXdist on another thread.  I have
corrected some errors (he says hopefully) and re-posting it here.

Rename as a .doc file.

Thanks to Juergen for filling in the gaps.

Any comments or corrections appreciated.

Dave

Juergen Beisert
For the interested: I just uploaded the Linux-3.0 support for the Mini2440
to the well known repository. This is not a release. So, testers are
welcome.

Juergen Beisert
For the interested: I just made the August release of our free Board
Support Package for the FriendlyARM's Mini2440.

Updated features are:
---------------------
- PTXdist-2011.08.0 (buildsystem)
  - Linux-3.x support
  - QWT 6.0.1
  - updates of various packages
- Kernel 3.0, stable release 1
- Kernel 2.6.39, stable release 4
- Barebox bootloader
  - support SD/MMC as boot media
- Notes added:
  - how to use NFS root filesystem
  - how to setup a NFS service
  - how to use SD/MMC as root filesystem

Fixes:
------
- Kernel:
  - minor fixes in the NAND driver
  - minor fixes in the DM9000 driver
- Barebox bootloader
  - fix DHCP network configuration

Feature List:
-------------
- PTXdist based buildsystem for easy setup and build
- more than one predefined configuration
  - one without graphic, for headless usage
  - one with full blown Qt support including an example how to use it
- recent GCC Toolchain (GCC 4.5.2, libc 2.13)
- Bootloader: Recent 'barebox' 2011.05.0
  Support for the following list of hardware components
  - serial console
  - network
  - SD card
  - NAND
- Kernel: Support for the following list of hardware components
  - serial console
  - network
  - sound
  - LED
  - GPIO
  - AD converter
  - I2C master and I2C EEPROM
  - SPI master
  - Watchdog
  - Keypad
  - USB (host and device)
  - various LC displays
  - framebuffer
  - touch
  - SD card
  - NAND
- Comprehensive documentation how to prepare and build all software
  components and to deploy the Mini2440.

Additional info can be found here:
http://www.oselas.org/oselas/bsp/pengutronix/index_en.html

Carlos Jaccoud
I followed the Quickstart Manual guidelines for build the Mini2440 root
filesystem but when I boot using TFTP+NFS, I get:

 "mini2440 login: root                                                     
      
Password:                                                                  
    
Login incorrect                                                            
    
mini2440 login:                                                            
    
process '/sbin/getty -L 115200 ttySAC0 vt100' (pid 394) exited. Scheduling
for .
starting pid 395, tty '/dev/console': '/sbin/getty -L 115200 ttySAC0 vt100'
    
                                                                           
    
mini2440 login:"

Can Anyone give me the correct User Name(?)/Password to enter the Linux
shell ?

Thanks in advance.

Ann R. (Russia)
Login is "root". No password requred by default

Juergen Beisert
For the interested: I just made the September release of our free Board
Support Package for FriendlyARM's popular Mini2440.

This time mostly boring maintenance, no exciting updates.

Updated features are:
---------------------

- PTXdist-2011.09.0
  - updates of various packages
- Kernel 3.0, stable release 4
  - now the kernel handles display sizes for Qt

Feature List:
-------------

- PTXdist based buildsystem for easy setup and build
- more than one predefined configuration
  - one without graphic, for headless usage
  - one with full blown Qt support including an example how to use it
- recent GCC Toolchain (GCC 4.5.2, libc 2.13)
- Bootloader: 'barebox' 2011.05.0
  Support for the following list of hardware components
  - serial console
  - network
  - SD card
  - NAND
- Kernel: Support for the following list of hardware components
  - serial console
  - network
  - sound
  - LED
  - GPIO
  - AD converter
  - I2C master and I2C EEPROM
  - SPI master
  - Watchdog
  - Keypad
  - USB (host and device)
  - various LC displays (N35/A70/VGA shield/T35/X35/W35i/N43)
  - framebuffer
  - touch
  - SD card
  - NAND
- Comprehensive documentation how to prepare and build all software
  components and to deploy the Mini2440.

Additional info can be found here:
http://www.oselas.org/oselas/bsp/pengutronix/index_en.html

Juergen Beisert
For the interested: I just made the October release of our free Board
Support Package for FriendlyARM's popular Mini2440.

This time mostly maintenance, no really exciting updates.

Updated Features:
-----------------

- PTXdist-2011.10.1
  - Qt-4.7.4
- Kernel 3.0, stable release 6

Feature List:
-------------

- PTXdist based buildsystem for easy setup and build
- more than one predefined configuration
  - one without graphic, for headless usage
  - one with full blown Qt support including an example how to use it
- recent GCC Toolchain (GCC 4.5.2, libc 2.13)
- Bootloader: 'barebox' 2011.05.0
  Support for the following list of hardware components
  - serial console
  - network
  - SD card
  - NAND
- Kernel: Support for the following list of hardware components
  - serial console
  - network
  - sound
  - LED
  - GPIO
  - AD converter
  - I2C master and I2C EEPROM
  - SPI master
  - Watchdog
  - Keypad
  - USB (host and device)
  - various LC displays (N35/A70/VGA shield/T35/X35/W35i/N43)
  - framebuffer
  - touch
  - SD card
  - NAND
- Comprehensive documentation how to prepare and build all software
  components and to deploy the Mini2440.

Additional info can be found here:
http://www.oselas.org/oselas/bsp/pengutronix/index_en.html

Juergen Beisert
For the interested: I just added the Linux-3.1 kernel to the git repository
and also the stable release 8 of Linux-3.0. Testers are welcome.

dragilla
Forgive me my ignorance, but how to use your patches? 
When I take a snapshot of your last git entry I see there a lot of patches,
fixes... Which should I apply? Only the one zipped, named like a kernel I
want to patch? Or all of them?

I want to use the latest patch compatible with latest xenomai 2.6.0 patch
(they support 2.6.35.9, 2.6.37.6, 2.6.38.8 and some older kernels). You
don't seem to have a patch for any of them :(
Is it possible to make a patch for 2.6.38.8?

regards,
-- 
Luke

Juergen Beisert
You can find patches for 2.6.38 in
"configs/platform-friendlyarm-mini2440/patches/linux-2.6.38/"

dragilla
So patch-2.6.38.7-8.bz2 is for both 2.6.38.7 and 2.6.38.8? 
I thought the last digit in the file name is your iteration of the patch
for version 2.6.38.7...

regards,

Juergen Beisert
No, its an incremental patch. It updates a 2.6.38.7 kernel to a 2.6.38.8.
This patch series starts with a plain 2.6.38 and adds all incremental
patches up to 2.6.38.8 step by step

dragilla
Ah, ok. Thank you.
I have a 1GB nand board. This patch will for it ok?
I'm trying to set up xenomai on my mini2240 and my plan is to use your
kernel patch, and then patch the resulting kernel with xenomai patches.
Do you think it makes sense? 
Also is there a list of all changes your patch makes?
Excuse me my ignoranche - I'm still learning :)

Juergen Beisert
Currently there is no really working NAND driver in this kernel. That's why
my board support package uses SD card or network to boot.

Juergen Beisert
Sorry, you are talking about the Mini2440. Yes, it should support all known
NANDs (there is no driver for the Mini6410 in my board support package)

dragilla
:(
Do you know in which kernels the nand was working?

Juergen Beisert
My last knowledge is, these kernel (or to be more precise: the NAND driver
for the S3C2440 CPU) can handle all known NANDs on the Mini2440. Also our
bootloader Barebox can handle them.

Juergen Beisert
"Also is there a list of all changes your patch makes?" -> Take a look into
the patches. They all have a header, which explains what the patch does
(except the stable patches).

dragilla
Hello again. I'm having trouble patching the 2.6.38.8 kernel with your
patches. 
Do I apply just the patch-2.6.38.7-8.bz2 or all of them? Or patches in the
directory in a series?
I don't understand.
Also... these files are not regular patch file, they're just diffs, right?
How do I patch a kernel with a diff file?
When I try to do it the way I know one should use for a patch, I get:

luke@dragilla:~/Desktop/moje/mini2440/linux-2.6.38.8$ patch -p0 <
patch-2.6.38.7-8 
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/Documentation/i2c/writing-clients
b/Documentation/i2c/writing-clients
|index 5ebf5af..5aa5337 100644
|--- a/Documentation/i2c/writing-clients
|+++ b/Documentation/i2c/writing-clients
--------------------------
File to patch:

Help me out a bit please.

dragilla
Ha, I think I understand now... having 2.6.38.8 kernel I must apply all the
patches in the directory except the *bz2 patches, as I already have the
latest 2.6.38 kernel.

Juergen Beisert
The patches in this folders are a "patch stack". The 'series' file gives
you the order the patches must be applied to a plain 2.6.38 kernel.
If you know the tool 'quilt' you can extract a plain 2.6.38 kernel, create
a directory "patches" in it, copy all the patches including the 'series'
file into it, and then run "quilt push -a". This will apply the whole list
for you. Advantage of 'quilt' is, you also can do the revert: "quilt pop
-a" to un-apply all patches. It's a nice tool to manage patch stacks and do
your own adaptions patch-wise.

dragilla
Ok, I successfully patched the kernel with all the patches from the 2.6.38
directory. A used your kernel.config a tuned it a bit, as I don't need gfx
and sound. 
Then I configured the kernel using xenomai script prepare-kernel.sh (which
patches the kernel).
And the problem is that after doing that, the kernel seems to no longer
support mini2440 - the ARM processor family is gone from menuconfig -
Pentium PRO is checked instead. WTF?

regards,

dragilla
But forgive me - this is a wrong place to ask this question. I will ask in
in the linux forum.

Juergen Beisert
How do you start the kernel's menuconfig? You always need the ARCH=arm
variable setting to see the correct arhcitecture.

Juergen Beisert
For the interested: I have just made the November release of our free Board
Support Package for FriendlyARM's popular Mini2440.

Updated Features:
-----------------

- PTXdist-2011.11.1
  - minor updates and bug fixes all over the place
- Kernel 3.1, stable release 1
  - buzzer support
  - button K6 now works as expected
- Kernel 3.0, stable release 9
- udev rule to distinguish touchscreen, button and buzzer device

Feature List:
-------------

- PTXdist based buildsystem for easy setup and build
- more than one predefined configuration
  - one without graphic, for headless usage
  - one with full blown Qt support including an example how to use it
- recent GCC Toolchain (GCC 4.5.2, libc 2.13)
- Bootloader: 'barebox' 2011.05.0
  Support for the following list of hardware components
  - serial console
  - network
  - SD card
  - NAND
- Kernel: Support for the following list of hardware components
  - serial console
  - network
  - sound
  - LED
  - GPIO
  - AD converter
  - I2C master and I2C EEPROM
  - SPI master
  - Watchdog
  - Keypad
  - USB (host and device)
  - various LC displays (N35/A70/VGA shield/T35/X35/W35i/N43)
  - framebuffer
  - touch
  - SD card
  - NAND
  - Buzzer
- Comprehensive documentation how to prepare and build all software
  components and to deploy the Mini2440.

Additional info can be found here:

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

Juergen Beisert
For the interested: I have just made the December release of our free Board
Support Package for FriendlyARM's popular Mini2440.

Please note: This will be the last release of the Mini2440 BSP on a monthly
base. This platform is well supported now, so this BSP needs more
maintenance than development. I will change to "one release per quarter"
now. This will still ensure the BSP keeps track of new Linux kernel
releases. I will also still add Linux kernel stable releases and fix bugs
if they occur. If one depends on this kind of changes/fixes she/he must use
the GIT repository up to the next quarter release.  

Updated Features:
-----------------

- PTXdist-2011.12.1
  - minor updates and bug fixes all over the place
- new OSELAS.Toolchain-2011.11.0
  - gcc-4.6.2
  - binutils-2.21.1a
  - glibc-2.14.1
- Kernel 3.1, stable release 6
- kernel 3.0, stable release 14
- udev rule to distinguish touchscreen, button and buzzer device fixed to
  make it work with USB based mice (thanks to Wingston for the report)
- beside the small Qt4/QWT demo this BSP now comes also with a Qt4/QML
  demo to show the new scripting features of Qt4 (thanks to Josef for the
  code)

Feature List:
-------------

- PTXdist based buildsystem for easy setup and build
- more than one predefined configuration
  - one without graphic, for headless usage
  - one with full blown Qt support including two examples how to use it
- recent GCC Toolchain (GCC 4.6.2, libc 2.14.1)
- Bootloader: 'barebox' 2011.05.0
  Support for the following list of hardware components
  - serial console
  - network
  - SD card
  - NAND
- Kernel: Support for the following list of hardware components
  - serial console
  - network
  - sound
  - LED
  - GPIO
  - AD converter
  - I2C master and I2C EEPROM
  - SPI master
  - Watchdog
  - Keypad
  - USB (host and device)
  - various LC displays (N35/A70/VGA shield/T35/X35/W35i/N43)
  - framebuffer
  - touch
  - SD card
  - NAND
  - Buzzer
- Comprehensive documentation how to prepare and build all software
  components and to deploy the Mini2440.

Additional info can be found here:

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

Juergen Beisert
For the interested: I have pushed the Linux-3.2 kernel into the GIT
repository. Testers are welcome. At least the sound is broken in 3.2 and I
didn't find the reason, yet.

Juergen Beisert
For the interested: I have just made the first quarter release 2012 of our
free Board Support Package for FriendlyARM's popular Mini2440.

Updated Features:
-----------------

- PTXdist-2012.02.0
  - minor updates and bug fixes all over the place
- Kernel 3.2, stable release 7
- Kernel 3.1, stable release 10
- kernel 3.0, stable release 22

Feature List:
-------------

- PTXdist based buildsystem for easy setup and build
- more than one predefined configuration
  - one without graphic, for headless usage
  - one with full blown Qt support including two examples how to use it
- recent GCC Toolchain (GCC 4.6.2, libc 2.14.1)
- Bootloader: 'barebox' 2011.05.0
  Support for the following list of hardware components
  - serial console
  - network
  - SD card
  - NAND
- Kernel: Support for the following list of hardware components
  - serial console
  - network
  - sound
  - LED
  - GPIO
  - AD converter
  - I2C master and I2C EEPROM
  - SPI master
  - Watchdog
  - Keypad
  - USB (host and device)
  - various LC displays (N35/A70/VGA shield/T35/X35/W35i/N43)
  - framebuffer
  - touch
  - SD card
  - NAND
  - Buzzer
- Comprehensive documentation how to prepare and build all software
  components and to deploy the Mini2440.

Additional info can be found here:

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

Judau
Thanks for sharing the newest BSP!
I'm user of WinCE! Do you know when the Friendly Arm release new BSP for
Wince?

Best regards,

Judau

Juergen Beisert
Don't know.

Juergen Beisert
For the interested: I have pushed the Linux-3.3 kernel into the GIT
repository. Testers are welcome.

Juergen Beisert
For the interested: I have just made the second quarter release 2012 of our
free Board Support Package for FriendlyARM's popular Mini2440.

Updated Features:
-----------------

- PTXdist-2012.06.0
  - many updates since 2012.02.0 and bug fixes all over the place
- Kernel 3.4, stable release 4
- Kernel 3.3, stable release 8
- Kernel 3.2, stable release 21
- kernel 3.0, stable release 36

Feature List:
-------------

- PTXdist based buildsystem for easy setup and build
- more than one predefined configuration
  - one without graphic, for headless usage
  - one with full blown Qt support including two examples how to use it
- recent GCC Toolchain (GCC 4.6.2, libc 2.14.1)
- Bootloader: 'Barebox' 2011.05.0
  Support for the following list of hardware components
  - serial console
  - network
  - SD card
  - NAND
- Kernel: Support for the following list of hardware components
  - serial console
  - network
  - sound
  - LED
  - GPIO
  - AD converter
  - I2C master and I2C EEPROM
  - SPI master
  - Watchdog
  - Keypad
  - USB (host and device)
  - various LC displays (N35/A70/VGA shield/T35/X35/W35i/N43)
  - framebuffer
  - touch
  - SD card
  - NAND
  - Buzzer
- Comprehensive documentation how to prepare and build all software
  components and to deploy the Mini2440.

Additional info can be found here:
http://www.oselas.org/oselas/bsp/pengutronix/index_en.html

shiblo
Does any of the BSP support full duplex audio?? Please answer me as soon as
possible.

Juergen Beisert
Sound support is known to be broken since kernel 3.2. No time yet to dig
into the reason for this issue. On the other hand: how to detect if a sound
subsystem supports full duplex audio or not (I'm not an audio expert)?

nicky jack
Dear juergen ,
please help me i know how to read the AIN0 using Penguttonix BSP, but now i
need to interface one displacement sensor, in that i need to create on
table that if ADC reads 2.7v it should show 0mm , 2.81-1mm,3.01v-2mm like
that it will go,please help me to create like this

Thanks in advance
Regards
Nicky jack

Juergen Beisert
Sounds like a simple math job: mapping a linear voltage (with offset) to a
non linear distance.

davef
Ah, double posting!  More noise.

Juergen Beisert
If someone wants test it: I have just committed Linux-3.5 to the Mini2440
BSP git repository.

Nicky jack
hi,
Juergen Beisert 

how to do that linear voltage with offset i am not getting the proper
tutorials please


Regards
Nicky

Juergen Beisert
BUG alert. The second quarter release 2012 of the Mini2440 has a bug, which
prevents all LCDs from working with the kernel from this BSP. After
extracting the BSP archive first apply a hot-fox[1] to it, and then
continue as the quickstart mentions.

[1]
http://www.pengutronix.de/oselas/bsp/pengutronix/download/OSELAS.BSP-Pen...

BaHko
What about Python on pengutronix?

Juergen Beisert
Just enable it in the BSP:
$ ptxdist menuconfig ->  
      Scripting Languages -->
        <*> python
        <*> python3
$ ptxdist go

BaHko
I have micro2440SDK kit. Is there any problems for me to run pengutronix on
it?
And what about the peripherals that I have? Also kind I enable all GPIO,
SPI, ADC etc? Or they are already enabled?

Juergen Beisert
As the micro2440 with its kit baseboard is mostly like the Mini2440 I would
expect it will work on your hardware. But it is untested, as I only have a
Mini2440 for testing. And all peripherals except the camera interface are
supported in the Pengutronix's Mini2440 BSP.

Martin Breidung
The Pengutronix BSP for Mini2440 run without any trouble on my Micro2440
1GB NAND with BIOS 2.0 and the older one with 64MB NAND and Bios 1.0.
I successfully use GPIOs and ADCs, SPI not tested by me.

But don't forget to apply the hotfix 1 if you want to use a LCD ;-)

BaHko
Juergen... I will tell you for if there are some problems.
Martin... good to know that everything is working. I have the hot fix
already downloaded.

Right now I'm compiling the toolchains. Once I'm done I will let you know
what is going on. :)

BaHko
Hello Juergen,

I have been banging my head for 2 days and I don't get it.

I'm stuck at 4.6 Building the Root Filesystem.

Till now everything was perfect and with no problems at all.

But once nce I try:

ptxdist-2012.09.1 go

I'm getting:

The ptxconfig file version and ptxdist version do not match

I went searching first I think I found was from you to add a link.

But as i can see it I don't need to add a link because I'm trying to
compile 2012.06.0 with 2012.09.1 so I think I have to migrate my project to
2012.09.1.
Once I try to ptxdist-2012.09.01 migrate it is asking me for Path to
sysroot (BUSYBOX_SYSROOT) [] (NEW)

What should I enter here... the path to ptxdist, toolchains or to
OSELAS.BSP-Pengutronix-Mini2440-2012.06.0?

davef
I am sure the expert will show up soon, but for now why are you trying to
compile the 2012.06.0 BSP with 2012.09.0 PTXdist?

Which toolchain did you compile and using which PTXdist version?

Juergen Beisert
BaHko: You started in the expert mode... :) Maybe - like davef already
suggested - re-start with the 2012.06.0 PTXdist to build the BSP. This will
let you continue to build everything smoothly. And when it works and you
are happy with it, *then* upgrade PTXdist or other parts of the BSP.
Migrating a project is sometimes easy, sometimes difficult. And the
"sometimes difficult" case needs some experience with the packages that may
fail, with PTXdist and how it works internally and so on.

Juergen Beisert
For the interested: I have just made the forth quarter release for the year
2012 (2012.12.0) of our Board Support Package for FriendlyARM's popular
Mini2440.

Updated Features:
-----------------

- PTXdist-2012.12.0
  - new kernel and userland hardening options
  - built-in user-mode NFS daemon
  - Qt-4.8.4
  - many updates since 2012.06.0 and bug fixes all over the place
- OSELAS.Toolchain-2012.12.0
  - GCC 4.7.2
  - glibc 2.16.0
- Kernel 3.7, stable release 1
- Kernel 3.6, stable release 11
- Kernel 3.5, stable release 7
- Kernel 3.4, stable release 24
- Kernel 3.2, stable release 35
- kernel 3.0, stable release 57
- Documentation update
  - timezone support
  - HowTo info
  - using the user-mode NFS daemon

Feature List:
-------------

- PTXdist based buildsystem for easy setup and build
- more than one predefined configuration
  - one without graphic, for headless usage
  - one with full blown Qt support including two examples how to use it
- recent GCC Toolchain (GCC 4.7.2, libc 2.16.0)
- Bootloader: 'Barebox' 2011.05.0
  Support for the following list of hardware components
  - serial console
  - network
  - SD card
  - NAND
- Kernel: Support for the following list of hardware components
  - serial console
  - network
  - sound (still broken in recent kernels)
  - LED
  - GPIO
  - AD converter
  - I2C master and I2C EEPROM
  - SPI master
  - Watchdog
  - Keypad
  - USB (host and device)
  - various LC displays (N35/A70/VGA shield/T35/X35/W35i/N43)
  - framebuffer
  - touch
  - SD card
  - NAND
  - Buzzer
- Comprehensive documentation how to prepare and build all software
  components and to deploy the Mini2440.

Additional info can be found here:
http://www.oselas.org/oselas/bsp/pengutronix/index_en.html

Ruben
Hi Juergen

Downloaded this package and started reading the Quick start. Amazing work
you are doing, appreciated!

Anvesh Manne
Hi Juergen,

Do you have any plan for camera support?

Juergen Beisert
Not yet, due to the absense of camera hardware.

Juergen Beisert
For the impatient: I have just uploaded the Linux-3.8 kernel support for
the Mini2440 in my GIT repository of the Board Support Package [1]. If
someone would like to test it, she/he is welcome.

Additional info can be found here:
http://www.oselas.org/oselas/bsp/pengutronix/index_en.html

[1] http://git-public.pengutronix.de/

Gopi
Hi everyone.

I got a problem while providing my user id and password.

I compiled linux 2.6.32.2 Mini2440 kernel and got uImage. While i loaded
this uImage into my mini2440 kit, i saw kernel initialization message upto
"INIT: Entering runlevel: 2". There i saw linux is asking for User Id and
Password which i dont even know.

In order to check whats going to happen if i provide a wrong password, i
typed "root" as my User Id and Password. But, whatever i typed from my pc
keyboard, i couldn't receive in my mini2440 board.

What would be the problem?

I use 

ARM linux kernel 2.6.32.2

NAND Flash size : 128MB
NOR flash size  : 2MB
Ram size        : 64MB

Host computer Terminal : Picocom (Ubuntu 12.4)

Root file system mounted in my SD card inside a Ext3 File system partition

Juergen Beisert
Long time no new release. But now!

For the interested: I have just made the 2013.10.0 release of our Board
Support Package for FriendlyARM's popular Mini2440.

Updated Features:
-----------------

- PTXdist-2013.09.0
  - many updates since 2012.12.0 and bug fixes all over the place
- OSELAS.Toolchain-2012.12.1
  - bug fixing release
- Kernel 3.11, stable release 3
- Kernel 3.10, stable release 14
- Kernel 3.9, stable release 11
- Kernel 3.8, stable release 13
- Kernel 3.7, stable release 10
- Kernel 3.6, stable release 11
- Kernel 3.5, stable release 7
- Kernel 3.4, stable release 64
- Kernel 3.2, stable release 51
- kernel 3.0, stable release 98

Feature List:
-------------

- PTXdist based buildsystem for easy setup and build
- more than one predefined configuration
  - one without graphic, for headless usage
  - one with full blown Qt support including two examples how to use it
- recent GCC Toolchain (GCC 4.7.2, libc 2.16.0)
- Bootloader: 'Barebox' 2011.05.0
  Support for the following list of hardware components
  - serial console
  - network
  - SD card
  - NAND
- Kernel: Support for the following list of hardware components
  - serial console
  - network
  - sound (still broken in recent kernels)
  - LED
  - GPIO
  - AD converter
  - I2C master and I2C EEPROM
  - SPI master
  - Watchdog
  - Keypad
  - USB (host and device)
  - various LC displays (N35/A70/VGA shield/T35/X35/W35i/N43)
  - framebuffer
  - touch
  - SD card
  - NAND
  - Buzzer (broken in 3.11 kernel)
- Comprehensive documentation how to prepare and build all software
  components and to deploy the Mini2440.

Please note: this will be the last release of this Mini2440 BSP/platform
composition. But don't be afraid! Support for the Mini2440 will be
continued, but as a so called 'platform' only. "Plugging-in" platforms into
existing BSPs is a PTXdist feature and thus only a Mini2440 platform is
needed to bring your own software composition into the hardware.
I will keep you informed when the Mini2440 platform is ready to use.

Additional info can be found here:
http://www.oselas.org/oselas/bsp/pengutronix/index_en.html

davef
Juergen,

A big THANK YOU to you and the team at Pengutronix for providing this BSP
and especially for the support provided.  An excellent example of being a
good "open source" community member.

Regards,
Dave

Sushant
Hello,
How to create own BSP for mini2440 any doc are available

Juergen Beisert
Just use the provided Mini2440-BSP and change its settings according to
your own requierements.
If you want to add your own new packages or config files read the "How to
become a PTXdist guru" at
"http://www.pengutronix.de/software/ptxdist/appnotes/OSELAS.BSP-Pengutron...;
In the next days I will update this document. Please be patient.

davef
What is the motivation for doing this?  Many man-years of work has gone
into PTXdist, which the mini2440 BSP uses to make life easier for
end-users.

If you just want to make your own custom mini2440 installation just learn
how to use their tools.  After some experience with that you may decide
that there is little point in trying to make your own build system.

Maybe, read about Buildroot, ArchLinux, Angstrom and other build systems to
gain some appreciation for the amount of work that goes into these systems.

sudhakar
Sir,How to apply bsp patches to the linux kernel 3.x for mini2440 board.

davef
Have a search on this site for 3.12 .
http://blog.gmane.org/gmane.comp.embedded.ptxdist.oselas.community
There was some work done to update 3.12 with the PTXdist patchset.

3.7 works fine for me so I haven't invested the time in updating.  Be aware
there are problems with 3.11 and I think 3.10

Juergen
If I will find the time to do so, a new release will come at the end of
2014 (with new PTXdist version, 4.9.2 GCC and Linux-3.18)

Sunny Leone
This new BSP will be supported on new boards(with new flash memory) or not?

vijay
i am using processor A1135 And display A70 its not working kindly help

Juergen
Long time no new release. But now!

For the interested: I have just made the 2015.01.0 release of our Board
Support Package for FriendlyARM's popular Mini2440.

This time there is no more TAR archive, its a tagged release in the GIT
repository at our server only.

To get the new release, run:

$ git clone
http://git-public.pengutronix.de/git-public/OSELAS.BSP-Pengutronix-Mini2...

and follow the embedded
"documentation/OSELAS.BSP-Pengutronix-Mini2440-Quickstart.pdf" document.

The intention of this release is to provide a recent buildsystem, due to
older PTXdist releases tend to fail in more recent host systems and
downloading packages from the internet.

Updated Features:
-----------------

- PTXdist-2015.01.0
- OSELAS.Toolchain-2014.12.0
  - GCC 4.9.2
  - glibc 2.20
- Kernel 3.16, stable release 7
- Kernel 3.15, stable release 7
- Kernel 3.14, stable release 31
- Kernel 3.13, stable release 11
- Kernel 3.12, stable release 37
- Kernel 3.4, stable release 105
- Kernel 3.2, stable release 66
- kernel 3.0, stable release 101

Feature List:
-------------

- PTXdist based buildsystem for easy setup and build
- more than one predefined configuration
  - one without graphic, for headless usage
  - one with full blown Qt support including two examples how to use it
- recent GCC Toolchain (GCC 4.9.2, libc 2.20)
- Bootloader: 'Barebox' 2011.05.0
  Support for the following list of hardware components
  - serial console
  - network
  - SD card
  - NAND
- Kernel: Support for the following list of hardware components
  - serial console
  - network
  - sound (still broken in recent kernels)
  - LED
  - GPIO
  - AD converter
  - I2C master and I2C EEPROM
  - SPI master
  - Watchdog
  - Keypad
  - USB (host and device)
  - various LC displays (N35/A70/VGA shield/T35/X35/W35i/N43)
  - framebuffer
  - touch
  - SD card
  - NAND
  - Buzzer
- Comprehensive documentation how to prepare and build all software
  components and to deploy the Mini2440.

davef
Mouse-over the link, copy link location and in terminal type:

$ git clone and then edit paste

Or, should I know that :)

Will have a look at actually using it over the next few weeks.

Thanks for providing the update.

Juergen
Hi davef,

sorry about the shown broken link. When I entered the text the link was
complete. The website seems to cut longer URLs.

So yes: let your browser copy the full URL...

santosh
Dear all,


please send the BSP package source code for mini2440.


Regard's
santosh

davef
https://git.pengutronix.de/cgit/

Last supported in 2015, but still useful for the mini2440

davef
or https://git.pengutronix.de/cgit/OSELAS.BSP-Pengutronix-Mini2440

drivingdirections
Thanks for sharing!