Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
sibrich
PostPosted: Jan 05, 2013 - 07:25 AM
Newbie


Joined: Jan 05, 2013
Posts: 4


I'd like to start off by saying thank you to all the contributers on this site. Without all your posts (and wiki pages) things would be much more difficult.

I have an ngw100 mkii board with an EVKLCD100 connected. I have built the buildroot version 2.3.0 (it's not clear that the 3.0 version supported the LCD panel?) and managed to reprogram the uBoot on the board no problems. I can boot Linux from my SD card reliably, I built the target "atngw100_evklcd100_defconfig".

I have though two problems. First is that I can't program the onboard flash with the commands:

flash_eraseall /dev/mtd3
flash_eraseall /dev/mtd1
dd if=/dev/mmcblk0p1/rootfs.avr32.jffs2-root of=/dev/mtd1 bs=1024
dd if=/dev/mmcblk0p1/rootfs.avr32.jffs2-usr of=/dev/mtd3 bs=1056

If I look in /dev I can see device mtd0, but there are no mtd1 or mtd3 devices. From what I can see these devices should be automatically created by hardware probing at load time (or something to that effect). Does this mean that my board may be broken? The board did run with the pre-loaded Linux out of the box so I it seems these flash areas do work ... Perhaps I need to run something to add these devices?

The other problem I have is that the display itself does not seem to do anything. I expected that when booting at least the backlight would come on. I ran a simple program that opens and memory maps the fb memory, but when writing to that memory I get a segmentation fault. I think I debug this myself, but I'd like to know if the LCD is indeed working at all. What is the default boot operation? I have seen in the boot log mention of a splash screen. I have also seen that when booting Linux fails to find the AC97 audio device ..

Would appreciate any advice or hints that you can give.

Richard

P.S. I have attached a dump from the serial port while booting, perhaps something in their can give a hint to my problem. (Sorry but my Linux VM thinks that todays date in Feb 26 2012 - only noticed that now)
 
 View user's profile Send private message  
Reply with quote Back to top
hce
PostPosted: Jan 07, 2013 - 09:12 AM
Raving lunatic


Joined: Jan 07, 2003
Posts: 4580
Location: Oslo, Norway

Remember that atngw100 != atngw100 mkII. IIRC you should in fact use the 3.0 version (or upstream) of buildroot, and build atngw100mkii_* configurations. The reason you don't see more mtd devices is probably because the atngw100 board code doesn't set them up.
 
 View user's profile Send private message  
Reply with quote Back to top
sibrich
PostPosted: Jan 07, 2013 - 03:05 PM
Newbie


Joined: Jan 05, 2013
Posts: 4


Thanks for the hint.

My 3.0 buildroot environment creates the same files as here http://www.atmel.no/buildroot/binaries/ ... w100mkii/.

I'll try loading the SD card with this rootfs and booting this uImage. (I assume/hope that the evklcd100 is supported by this image.)
 
 View user's profile Send private message  
Reply with quote Back to top
sibrich
PostPosted: Jan 08, 2013 - 03:17 PM
Newbie


Joined: Jan 05, 2013
Posts: 4


Running up the pre-built rootfs from atmel.no for 3.0.0 seems to have located the missing /dev/mtdX devices. So I guess the board is ok. But there is no /dev/fb0 device with this build.

I don't see any prebuilt 3.0 images for the evklcd100, I was assuming this was now included in the base ngw100mkii.

Do I create a custom buildroot to add these in? Can you provide some hints how to create such a custom config?

Thanks in advance!
 
 View user's profile Send private message  
Reply with quote Back to top
hce
PostPosted: Jan 09, 2013 - 06:35 AM
Raving lunatic


Joined: Jan 07, 2003
Posts: 4580
Location: Oslo, Norway

Change the defconfig used to build the Linux kernel, to get the appropriate board code for NGW100 mkII + EVKLCD100 you must load atngw100mkii_evklcd100_defconfig.
 
 View user's profile Send private message  
Reply with quote Back to top
sibrich
PostPosted: Jan 13, 2013 - 02:32 PM
Newbie


Joined: Jan 05, 2013
Posts: 4


Thanks, but this config seems to be missing from the buildroot 3.0.0 that I have. I downloaded this from http://www.atmel.no/buildroot/buildroot-src.html (http://www.atmel.no/buildroot/source/buildroot-avr32-v3.0.0.tar.bz2)

The configs available are:

arm_nptl_toolchain_defconfig
arm_toolchain_defconfig
at91rm9200df_defconfig
at91rm9200df_ext_bare_defconfig
at91rm9200df_ext_defconfig
at91sam9260dfc_defconfig
at91sam9260dfc_ext_bare_defconfig
at91sam9260dfc_ext_defconfig
at91sam9260pf_defconfig
at91sam9261ek_defconfig
at91sam9261ek_ext_bare_defconfig
at91sam9261ek_ext_defconfig
at91sam9263ek_defconfig
at91sam9263ek_ext_bare_defconfig
at91sam9263ek_ext_defconfig
at91sam9g20dfc_defconfig
at91sam9g20dfc_ext_bare_defconfig
at91sam9g20dfc_ext_defconfig
atngw100-base_defconfig
atngw100_defconfig
atngw100_upgrade_defconfig
atngw100mkii_defconfig
atngw100mkii_upgrade_defconfig

atstk1002_defconfig
atstk1002_upgrade_defconfig
atstk1006_defconfig
atstk1006_upgrade_defconfig
atstk100x_defconfig
i386_defconfig
i686_defconfig
integrator926_defconfig
integrator926_huge_defconfig
kb9202_defconfig
v100sc2_defconfig


There is no atngw100mkii_evklcd100_defconfig ... Have I downloaded the wrong version? Can you point me to the right place for downloading buildroot with this defconfig included?
 
 View user's profile Send private message  
Reply with quote Back to top
hce
PostPosted: Jan 13, 2013 - 04:05 PM
Raving lunatic


Joined: Jan 07, 2003
Posts: 4580
Location: Oslo, Norway

There are two defconfigs, one for buildroot, and one for the Linux kernel. Extract the kernel sources and you'll find a atngw100mkii_evklcd100_defconfig. The latter is at least true if you use latest release from kernel.org.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits