Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Atmel file system skeleton missing /sys directory
@ 2008-10-18  0:07 John Schimandle
  2008-10-18  7:52 ` Roberto A. Foglietta
  2008-10-18 12:48 ` [Buildroot] Atmel file system skeleton missing /sys directory Peter Korsgaard
  0 siblings, 2 replies; 8+ messages in thread
From: John Schimandle @ 2008-10-18  0:07 UTC (permalink / raw)
  To: buildroot

I'm still working through my issues with programming on the at91sam9263ek
board and discovered a bug in the Atmel root file system skeleton directory.
The  root file system was missing the /sys directory and that caused sysfs
to not mount at boot time. I manually added the sys directory to
target/device/Atmel/root/target_skeleton. removed the
target_build_arm/at91sam9263ek/.root file, rebuilt buildroot and that fixed
the problem.
 
I would like to propogate the patch into the buildroot system but I don't
know the appropriate place to fix the problem.
 
Any help would be appreciated. Just trying to fix things so other people
don't run into the same problem.
 
Regards,
 
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20081017/7ffa0f06/attachment.htm 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] Atmel file system skeleton missing /sys directory
  2008-10-18  0:07 [Buildroot] Atmel file system skeleton missing /sys directory John Schimandle
@ 2008-10-18  7:52 ` Roberto A. Foglietta
  2008-10-18 12:51   ` Peter Korsgaard
  2008-10-18 12:48 ` [Buildroot] Atmel file system skeleton missing /sys directory Peter Korsgaard
  1 sibling, 1 reply; 8+ messages in thread
From: Roberto A. Foglietta @ 2008-10-18  7:52 UTC (permalink / raw)
  To: buildroot

2008/10/18 John Schimandle <john_schimandle@hotmail.com>:
> I'm still working through my issues with programming on the at91sam9263ek
> board and discovered a bug in the Atmel root file system skeleton directory.
> The  root file system was missing the /sys directory and that caused sysfs
> to not mount at boot time. I manually added the sys directory to
> target/device/Atmel/root/target_skeleton. removed the
> target_build_arm/at91sam9263ek/.root file, rebuilt buildroot and that fixed
> the problem.
>
> I would like to propogate the patch into the buildroot system but I don't
> know the appropriate place to fix the problem.
>
> Any help would be appreciated. Just trying to fix things so other people
> don't run into the same problem.
>

 Playing with the i386 target I see /proc /sys and sometime /usr/lib
are missing. The last one in particular when no any package 'mkdir' it
the main 'make' fails in running a 'find' in that not existent
directory.

 Thanks,
-- 
/roberto

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] Atmel file system skeleton missing /sys directory
  2008-10-18  0:07 [Buildroot] Atmel file system skeleton missing /sys directory John Schimandle
  2008-10-18  7:52 ` Roberto A. Foglietta
@ 2008-10-18 12:48 ` Peter Korsgaard
  1 sibling, 0 replies; 8+ messages in thread
From: Peter Korsgaard @ 2008-10-18 12:48 UTC (permalink / raw)
  To: buildroot

>>>>> "John" == John Schimandle <john_schimandle@hotmail.com> writes:

Hi,

 John> I'm still working through my issues with programming on the
 John> at91sam9263ek board and discovered a bug in the Atmel root file
 John> system skeleton directory. The root file system was missing the
 John> /sys directory and that caused sysfs to not mount at boot
 John> time. I manually added the sys directory to
 John> target/device/Atmel/ root/target_skeleton. removed the
 John> target_build_arm/at91sam9263ek/.root file, rebuilt buildroot
 John> and that fixed the problem.
 
 John> I would like to propogate the patch into the buildroot system
 John> but I don't know the appropriate place to fix the problem.

Like this ;) Fixed in r23708.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] Atmel file system skeleton missing /sys directory
  2008-10-18  7:52 ` Roberto A. Foglietta
@ 2008-10-18 12:51   ` Peter Korsgaard
  2008-10-18 13:44     ` Roberto A. Foglietta
  2008-10-18 13:49     ` [Buildroot] i386 target root file system missing directories John Schimandle
  0 siblings, 2 replies; 8+ messages in thread
From: Peter Korsgaard @ 2008-10-18 12:51 UTC (permalink / raw)
  To: buildroot

>>>>> "Roberto" == Roberto A Foglietta <roberto.foglietta@gmail.com> writes:

Hi,

 Roberto>  Playing with the i386 target I see /proc /sys and sometime
 Roberto> /usr/lib are missing. The last one in particular when no any
 Roberto> package 'mkdir' it the main 'make' fails in running a 'find'
 Roberto> in that not existent directory.

Can you be more specific? target/generic/target_skeleton has both
/sys, /proc and /usr/lib.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] Atmel file system skeleton missing /sys directory
  2008-10-18 12:51   ` Peter Korsgaard
@ 2008-10-18 13:44     ` Roberto A. Foglietta
  2008-10-18 13:49     ` [Buildroot] i386 target root file system missing directories John Schimandle
  1 sibling, 0 replies; 8+ messages in thread
From: Roberto A. Foglietta @ 2008-10-18 13:44 UTC (permalink / raw)
  To: buildroot

2008/10/18 Peter Korsgaard <jacmet@uclibc.org>:
>>>>>> "Roberto" == Roberto A Foglietta <roberto.foglietta@gmail.com> writes:
>
> Hi,
>
>  Roberto>  Playing with the i386 target I see /proc /sys and sometime
>  Roberto> /usr/lib are missing. The last one in particular when no any
>  Roberto> package 'mkdir' it the main 'make' fails in running a 'find'
>  Roberto> in that not existent directory.
>
> Can you be more specific? target/generic/target_skeleton has both
> /sys, /proc and /usr/lib.

roberto at rafbook:~/gles/buildroot$ svn info | grep Last
Last Changed Author: jacmet
Last Changed Rev: 23701
Last Changed Date: 2008-10-17 12:19:41 +0200 (Fri, 17 Oct 2008)
roberto at rafbook:~/gles/buildroot$ ls -al project_build_i586/ugles/root/

 I started without any package but only toolchain and after added
busybox. I tried the actual .config and works properly, please forget
my msg. In case I found a way to reproduce it I will open a report in
the bug tool.

 Thanks,
-- 
/roberto

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] i386 target root file system missing directories
  2008-10-18 12:51   ` Peter Korsgaard
  2008-10-18 13:44     ` Roberto A. Foglietta
@ 2008-10-18 13:49     ` John Schimandle
  2008-10-18 20:22       ` Roberto A. Foglietta
  2008-10-19 11:25       ` Roberto A. Foglietta
  1 sibling, 2 replies; 8+ messages in thread
From: John Schimandle @ 2008-10-18 13:49 UTC (permalink / raw)
  To: buildroot

Roberto,

You have to determine the source of the skeleton to find out where the
problem is located. It took me a while to find it because of all the
variable indirection that occurs in buildroot. A simple way to track down
the problem is to just rebuild the root file system from the root directory
of build root and then inspect the output of make for the source of the
skeleton.

rm target_build_ARCH/project/.root  # ARCH and project are specific to your
buildroot configuration
make >make.log 2>&1
grep skeleton make.log

You should see a shell command like

cp -fa ......./target_skeleton  target_build_ARCH/project/root

This will give you the source root directory for your skeleton. You can then
check the source root directory tree for the missing directories. If the
directories are located here then there is some other problem where they are
being removed later in the build process.

I also changed the title on this thread because it is not related to the
Atmel architecture

Regards,

John

-----Original Message-----
From: Peter Korsgaard [mailto:jacmet at gmail.com] On Behalf Of Peter Korsgaard
Sent: Saturday, October 18, 2008 5:51 AM
To: Roberto A. Foglietta
Cc: John Schimandle; buildroot at uclibc.org
Subject: Re: [Buildroot] Atmel file system skeleton missing /sys directory

>>>>> "Roberto" == Roberto A Foglietta <roberto.foglietta@gmail.com> writes:

Hi,

 Roberto>  Playing with the i386 target I see /proc /sys and sometime
Roberto> /usr/lib are missing. The last one in particular when no any
Roberto> package 'mkdir' it the main 'make' fails in running a 'find'
 Roberto> in that not existent directory.

Can you be more specific? target/generic/target_skeleton has both /sys,
/proc and /usr/lib.

--
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] i386 target root file system missing directories
  2008-10-18 13:49     ` [Buildroot] i386 target root file system missing directories John Schimandle
@ 2008-10-18 20:22       ` Roberto A. Foglietta
  2008-10-19 11:25       ` Roberto A. Foglietta
  1 sibling, 0 replies; 8+ messages in thread
From: Roberto A. Foglietta @ 2008-10-18 20:22 UTC (permalink / raw)
  To: buildroot

Hi John,

 removing .root everything goes fine. I used minimal root filesystem
and after I changed but I did not removed .root file flag. I think
this thread could be closed.

 [may be another subject change would arise]

 I have tried many different configurations and I feel root was
bloated then I removed it but buildroot make does not install all
choose packages but just few:

roberto at rafbook:~/gles/buildroot$ du -ks project_build_i586/ugles/root/
22204	project_build_i586/ugles/root/
roberto at rafbook:~/gles/buildroot$ mv -f project_build_i586/ugles/root/
project_build_i586/ugles/root.prev
roberto at rafbook:~/gles/buildroot$ make

[...]

roberto at rafbook:~/gles/buildroot$ du -ks project_build_i586/ugles/root/
5944	project_build_i586/ugles/root/

 I tried 'make help' but it was useless. Have I to 'make clean' and
'make' everything again? It would be a very time consuming approach...

 thanks,
Roberto A. Foglietta

2008/10/18 John Schimandle <john_schimandle@hotmail.com>:
> Roberto,
>
> You have to determine the source of the skeleton to find out where the
> problem is located. It took me a while to find it because of all the
> variable indirection that occurs in buildroot. A simple way to track down
> the problem is to just rebuild the root file system from the root directory
> of build root and then inspect the output of make for the source of the
> skeleton.
>
> rm target_build_ARCH/project/.root  # ARCH and project are specific to your
> buildroot configuration
> make >make.log 2>&1
> grep skeleton make.log
>
> You should see a shell command like
>
> cp -fa ......./target_skeleton  target_build_ARCH/project/root
>
> This will give you the source root directory for your skeleton. You can then
> check the source root directory tree for the missing directories. If the
> directories are located here then there is some other problem where they are
> being removed later in the build process.
>
> I also changed the title on this thread because it is not related to the
> Atmel architecture
>
> Regards,
>
> John
>
> -----Original Message-----
> From: Peter Korsgaard [mailto:jacmet at gmail.com] On Behalf Of Peter Korsgaard
> Sent: Saturday, October 18, 2008 5:51 AM
> To: Roberto A. Foglietta
> Cc: John Schimandle; buildroot at uclibc.org
> Subject: Re: [Buildroot] Atmel file system skeleton missing /sys directory
>
>>>>>> "Roberto" == Roberto A Foglietta <roberto.foglietta@gmail.com> writes:
>
> Hi,
>
>  Roberto>  Playing with the i386 target I see /proc /sys and sometime
> Roberto> /usr/lib are missing. The last one in particular when no any
> Roberto> package 'mkdir' it the main 'make' fails in running a 'find'
>  Roberto> in that not existent directory.
>
> Can you be more specific? target/generic/target_skeleton has both /sys,
> /proc and /usr/lib.
>
> --
> Bye, Peter Korsgaard
>
>



-- 
/roberto

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] i386 target root file system missing directories
  2008-10-18 13:49     ` [Buildroot] i386 target root file system missing directories John Schimandle
  2008-10-18 20:22       ` Roberto A. Foglietta
@ 2008-10-19 11:25       ` Roberto A. Foglietta
  1 sibling, 0 replies; 8+ messages in thread
From: Roberto A. Foglietta @ 2008-10-19 11:25 UTC (permalink / raw)
  To: buildroot

Hi John,

 it happened again, as you asked me I submit the information:

roberto at rafbook:~/gles/buildroot$ rm -f  project_build_i586/ugles/.root
roberto at rafbook:~/gles/buildroot$ make menuconfig


*** End of Buildroot configuration.
*** Execute 'make' to build Buildroot or try 'make help'.

#
# make dependencies written to .auto.deps
# ATTENTION buildroot devels!
# See top of this file before playing with this auto-preprequisites!
#
roberto at rafbook:~/gles/buildroot$ make >make.log 2>&1
roberto at rafbook:~/gles/buildroot$ grep skeleton make.log
		if [ -d "target/generic/target_skeleton" ]; then \
			cp -fa target/generic/target_skeleton/*
/home/roberto/gles/buildroot/project_build_i586/ugles/root/; \
roberto at rafbook:~/gles/buildroot$ ls -al project_build_i586/ugles/root/proc
ls: cannot access project_build_i586/ugles/root/proc: No such file or directory


2008/10/18 John Schimandle <john_schimandle@hotmail.com>:
> Roberto,
>
> You have to determine the source of the skeleton to find out where the
> problem is located. It took me a while to find it because of all the
> variable indirection that occurs in buildroot. A simple way to track down
> the problem is to just rebuild the root file system from the root directory
> of build root and then inspect the output of make for the source of the
> skeleton.
>
> rm target_build_ARCH/project/.root  # ARCH and project are specific to your
> buildroot configuration
> make >make.log 2>&1
> grep skeleton make.log
>
> You should see a shell command like
>
> cp -fa ......./target_skeleton  target_build_ARCH/project/root
>
> This will give you the source root directory for your skeleton. You can then
> check the source root directory tree for the missing directories. If the
> directories are located here then there is some other problem where they are
> being removed later in the build process.
>
> I also changed the title on this thread because it is not related to the
> Atmel architecture
>
> Regards,
>
> John
>
> -----Original Message-----
> From: Peter Korsgaard [mailto:jacmet at gmail.com] On Behalf Of Peter Korsgaard
> Sent: Saturday, October 18, 2008 5:51 AM
> To: Roberto A. Foglietta
> Cc: John Schimandle; buildroot at uclibc.org
> Subject: Re: [Buildroot] Atmel file system skeleton missing /sys directory
>
>>>>>> "Roberto" == Roberto A Foglietta <roberto.foglietta@gmail.com> writes:
>
> Hi,
>
>  Roberto>  Playing with the i386 target I see /proc /sys and sometime
> Roberto> /usr/lib are missing. The last one in particular when no any
> Roberto> package 'mkdir' it the main 'make' fails in running a 'find'
>  Roberto> in that not existent directory.
>
> Can you be more specific? target/generic/target_skeleton has both /sys,
> /proc and /usr/lib.
>
> --
> Bye, Peter Korsgaard
>
>



-- 
/roberto

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-10-19 11:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-18  0:07 [Buildroot] Atmel file system skeleton missing /sys directory John Schimandle
2008-10-18  7:52 ` Roberto A. Foglietta
2008-10-18 12:51   ` Peter Korsgaard
2008-10-18 13:44     ` Roberto A. Foglietta
2008-10-18 13:49     ` [Buildroot] i386 target root file system missing directories John Schimandle
2008-10-18 20:22       ` Roberto A. Foglietta
2008-10-19 11:25       ` Roberto A. Foglietta
2008-10-18 12:48 ` [Buildroot] Atmel file system skeleton missing /sys directory Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox