* Re: Error when starting kernel with devicetree on tx53 [not found] <emde4cb769-926c-4395-89e6-073d8c931261@plh001-think> @ 2013-05-12 18:12 ` Dr. Patrick Langfeld 2013-05-13 4:59 ` Sascha Hauer 0 siblings, 1 reply; 4+ messages in thread From: Dr. Patrick Langfeld @ 2013-05-12 18:12 UTC (permalink / raw) To: barebox Hello, I try to install barebox 2013.05.0 as bootloader for a karo-TX53 board. Currently uBoot is used. As a first try I load the barebox image with uboot over tftp into RAM and start it from there. Barebox starts and I can access the menu and select my prepared boot-entry 2: Boot: optiMEAS Net-Boot Then barebox loads the Kernel-image "uImage" and the devicetree "tx53.dtb" from the mountpoint "mnt/tftp". But then it chrashes with the error message as stated below. The same kernelimage and devicetree is working when started with Uboot. Where is my mistake? Am I missing some settings? What else do I have to configure when I want to start my kernel and using a devicetree? Thanks for helping. Patrick BootScript: #!/bin/sh if [ "$1" = menu ]; then boot-menu-add-entry "$0" "optiMEAS Net-Boot" exit fi global.bootm.image=/mnt/tftp/uImage global.bootm.oftree=/mnt/tftp/tx53.dtb #global.bootm.initrd=<path to initrd> #bootargs-ip global.linux.bootargs.dyn.root="root=/home/user/development/bsp/branch2_tx53/platform-optimeas-tx53/root" Messages: booting ./nfs... 100Mbps full duplex link detected Image Name: Linux-3.4.37-optimeas-master-rt5 Created: 2013-05-08 9:26:43 UTC OS: Linux Architecture: ARM Type: Kernel Image Compression: uncompressed Data Size: 2275608 Bytes = 2.2 MiB Load Address: 70008000 Entry Point: 70008000 Loading OS U-Boot uImage '/mnt/tftp/uImage' OS image is at 0x70008000-0x70233917 Loading devicetree from '/mnt/tftp/tx53.dtb' /mnt/tftp/tx53.dtb is not an oftree but unknown bad magic: 0x0000f085 Passing control to ARM Linux uImage handler unable to handle paging request at address 0xfffffffe pc : [<87f1248a>] lr : [<87f124db>] sp : 8fffece0 ip : 8fffe924 fp : 00000003 r10: 00000000 r9 : 70008000 r8 : 00000000 r7 : 863e6f34 r6 : 863e6f34 r5 : ffffffea r4 : ffffffea r3 : 00000000 r2 : 00000000 r1 : 863e6f34 r0 : ffffffea Flags: Nzcv IRQs off FIQs off Mode SVC_32 [<87f1248a>] (of_find_child_by_name+0xe/0x28) from [<87f124db>] (of_find_node_by_path+0x37/0x50) [<87f124db>] (of_find_node_by_path+0x37/0x50) from [<87f127ef>] (of_add_initrd+0xf/0x84) [<87f127ef>] (of_add_initrd+0xf/0x84) from [<87f22a55>] (__do_bootm_linux+0xbd/0x138) [<87f22a55>] (__do_bootm_linux+0xbd/0x138) from [<87f132ed>] (do_bootm+0x435/0x4e8) [<87f132ed>] (do_bootm+0x435/0x4e8) from [<87f03649>] (execute_command+0x21/0x48) [<87f03649>] (execute_command+0x21/0x48) from [<87f00177>] (binfmt_exec_excute+0x43/0x50) [<87f00177>] (binfmt_exec_excute+0x43/0x50) from [<87f000cd>] (__exceptions_stop+0x35/0x54) [<87f000cd>] (__exceptions_stop+0x35/0x54) from [<87f012e1>] (run_list_real+0x535/0x620) [<87f012e1>] (run_list_real+0x535/0x620) from [<87f00c7b>] (parse_stream_outer+0xfb/0x194) [<87f00c7b>] (parse_stream_outer+0xfb/0x194) from [<87f00d95>] (parse_string_outer+0x81/0x98) [<87f00d95>] (parse_string_outer+0x81/0x98) from [<87f0116b>] (run_list_real+0x3bf/0x620) [<87f0116b>] (run_list_real+0x3bf/0x620) from [<87f00c7b>] (parse_stream_outer+0xfb/0x194) [<87f00c7b>] (parse_stream_outer+0xfb/0x194) from [<87f00d6f>] (parse_string_outer+0x5b/0x98) [<87f00d6f>] (parse_string_outer+0x5b/0x98) from [<87f013f3>] (source_script+0x27/0x4c) [<87f013f3>] (source_script+0x27/0x4c) from [<87f01475>] (binfmt_sh_excute+0x17/0x20) [<87f01475>] (binfmt_sh_excute+0x17/0x20) from [<87f000cd>] (__exceptions_stop+0x35/0x54) [<87f000cd>] (__exceptions_stop+0x35/0x54) from [<87f00129>] (execute_binfmt+0x3d/0x48) [<87f00129>] (execute_binfmt+0x3d/0x48) from [<87f012e1>] (run_list_real+0x535/0x620) [<87f012e1>] (run_list_real+0x535/0x620) from [<87f00c7b>] (parse_stream_outer+0xfb/0x194) [<87f00c7b>] (parse_stream_outer+0xfb/0x194) from [<87f00d95>] (parse_string_outer+0x81/0x98) [<87f00d95>] (parse_string_outer+0x81/0x98) from [<87f0116b>] (run_list_real+0x3bf/0x620) [<87f0116b>] (run_list_real+0x3bf/0x620) from [<87f0102f>] (run_list_real+0x283/0x620) [<87f0102f>] (run_list_real+0x283/0x620) from [<87f00c7b>] (parse_stream_outer+0xfb/0x194) [<87f00c7b>] (parse_stream_outer+0xfb/0x194) from [<87f00d6f>] (parse_string_outer+0x5b/0x98) [<87f00d6f>] (parse_string_outer+0x5b/0x98) from [<87f013f3>] (source_script+0x27/0x4c) [<87f013f3>] (source_script+0x27/0x4c) from [<87f01475>] (binfmt_sh_excute+0x17/0x20) [<87f01475>] (binfmt_sh_excute+0x17/0x20) from [<87f000cd>] (__exceptions_stop+0x35/0x54) [<87f000cd>] (__exceptions_stop+0x35/0x54) from [<87f00129>] (execute_binfmt+0x3d/0x48) [<87f00129>] (execute_binfmt+0x3d/0x48) from [<87f012e1>] (run_list_real+0x535/0x620) [<87f012e1>] (run_list_real+0x535/0x620) from [<87f00c7b>] (parse_stream_outer+0xfb/0x194) [<87f00c7b>] (parse_stream_outer+0xfb/0x194) from [<87f00d95>] (parse_string_outer+0x81/0x98) [<87f00d95>] (parse_string_outer+0x81/0x98) from [<87f0116b>] (run_list_real+0x3bf/0x620) [<87f0116b>] (run_list_real+0x3bf/0x620) from [<87f0102f>] (run_list_real+0x283/0x620) [<87f0102f>] (run_list_real+0x283/0x620) from [<87f00c7b>] (parse_stream_outer+0xfb/0x194) [<87f00c7b>] (parse_stream_outer+0xfb/0x194) from [<87f00d6f>] (parse_string_outer+0x5b/0x98) [<87f00d6f>] (parse_string_outer+0x5b/0x98) from [<87f013f3>] (source_script+0x27/0x4c) [<87f013f3>] (source_script+0x27/0x4c) from [<87f01475>] (binfmt_sh_excute+0x17/0x20) [<87f01475>] (binfmt_sh_excute+0x17/0x20) from [<87f000cd>] (__exceptions_stop+0x35/0x54) [<87f000cd>] (__exceptions_stop+0x35/0x54) from [<87f00129>] (execute_binfmt+0x3d/0x48) [<87f00129>] (execute_binfmt+0x3d/0x48) from [<87f012e1>] (run_list_real+0x535/0x620) [<87f012e1>] (run_list_real+0x535/0x620) from [<87f00c7b>] (parse_stream_outer+0xfb/0x194) [<87f00c7b>] (parse_stream_outer+0xfb/0x194) from [<87f00d6f>] (parse_string_outer+0x5b/0x98) [<87f00d6f>] (parse_string_outer+0x5b/0x98) from [<87f0148d>] (run_command+0xf/0x1e) [<87f0148d>] (run_command+0xf/0x1e) from [<87f04d95>] (menu_action_command+0x19/0x2c) [<87f04d95>] (menu_action_command+0x19/0x2c) from [<87f05213>] (menu_show+0x1c3/0x228) [<87f05213>] (menu_show+0x1c3/0x228) from [<87f16623>] (do_menu+0x2c7/0x2ec) [<87f16623>] (do_menu+0x2c7/0x2ec) from [<87f03649>] (execute_command+0x21/0x48) [<87f03649>] (execute_command+0x21/0x48) from [<87f012e1>] (run_list_real+0x535/0x620) [<87f012e1>] (run_list_real+0x535/0x620) from [<87f0102f>] (run_list_real+0x283/0x620) [<87f0102f>] (run_list_real+0x283/0x620) from [<87f00c7b>] (parse_stream_outer+0xfb/0x194) [<87f00c7b>] (parse_stream_outer+0xfb/0x194) from [<87f00d6f>] (parse_string_outer+0x5b/0x98) [<87f00d6f>] (parse_string_outer+0x5b/0x98) from [<87f013f3>] (source_script+0x27/0x4c) [<87f013f3>] (source_script+0x27/0x4c) from [<87f01475>] (binfmt_sh_excute+0x17/0x20) [<87f01475>] (binfmt_sh_excute+0x17/0x20) from [<87f000cd>] (__exceptions_stop+0x35/0x54) [<87f000cd>] (__exceptions_stop+0x35/0x54) from [<87f012e1>] (run_list_real+0x535/0x620) [<87f012e1>] (run_list_real+0x535/0x620) from [<87f0102f>] (run_list_real+0x283/0x620) [<87f0102f>] (run_list_real+0x283/0x620) from [<87f00c7b>] (parse_stream_outer+0xfb/0x194) [<87f00c7b>] (parse_stream_outer+0xfb/0x194) from [<87f00d6f>] (parse_string_outer+0x5b/0x98) [<87f00d6f>] (parse_string_outer+0x5b/0x98) from [<87f013f3>] (source_script+0x27/0x4c) [<87f013f3>] (source_script+0x27/0x4c) from [<87f0144b>] (do_source+0x33/0x46) [<87f0144b>] (do_source+0x33/0x46) from [<87f03649>] (execute_command+0x21/0x48) [<87f03649>] (execute_command+0x21/0x48) from [<87f012e1>] (run_list_real+0x535/0x620) [<87f012e1>] (run_list_real+0x535/0x620) from [<87f00c7b>] (parse_stream_outer+0xfb/0x194) [<87f00c7b>] (parse_stream_outer+0xfb/0x194) from [<87f00d6f>] (parse_string_outer+0x5b/0x98) [<87f00d6f>] (parse_string_outer+0x5b/0x98) from [<87f0148d>] (run_command+0xf/0x1e) [<87f0148d>] (run_command+0xf/0x1e) from [<87f0464d>] (start_barebox+0x6d/0xc4) [<87f0464d>] (start_barebox+0x6d/0xc4) from [<87f23701>] (__start+0x49/0x54) [<87f23701>] (__start+0x49/0x54) from [<87f00005>] (__bare_init_start+0x1/0xc) [<87f23201>] (unwind_backtrace+0x1/0x60) from [<87f17c59>] (panic+0x1d/0x2c) [<87f17c59>] (panic+0x1d/0x2c) from [<87f2361d>] (do_exception+0xd/0x10) [<87f2361d>] (do_exception+0xd/0x10) from [<87f23685>] (do_data_abort+0x21/0x2c) [<87f23685>] (do_data_abort+0x21/0x2c) from [<87f233c8>] (data_abort+0x48/0x60) _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Error when starting kernel with devicetree on tx53 2013-05-12 18:12 ` Error when starting kernel with devicetree on tx53 Dr. Patrick Langfeld @ 2013-05-13 4:59 ` Sascha Hauer 2013-05-13 8:43 ` Re[2]: " Dr. Patrick Langfeld 0 siblings, 1 reply; 4+ messages in thread From: Sascha Hauer @ 2013-05-13 4:59 UTC (permalink / raw) To: Dr. Patrick Langfeld; +Cc: barebox On Sun, May 12, 2013 at 06:12:11PM +0000, Dr. Patrick Langfeld wrote: > > Loading OS U-Boot uImage '/mnt/tftp/uImage' > OS image is at 0x70008000-0x70233917 > Loading devicetree from '/mnt/tftp/tx53.dtb' > /mnt/tftp/tx53.dtb is not an oftree but unknown > bad magic: 0x0000f085 Your problem is that this not a devicetree blob. Of course barebox should not crash then, this seems to be a bug. Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re[2]: Error when starting kernel with devicetree on tx53 2013-05-13 4:59 ` Sascha Hauer @ 2013-05-13 8:43 ` Dr. Patrick Langfeld 2013-05-13 12:44 ` Sascha Hauer 0 siblings, 1 reply; 4+ messages in thread From: Dr. Patrick Langfeld @ 2013-05-13 8:43 UTC (permalink / raw) To: Sascha Hauer; +Cc: barebox Thanks Sascha, but whats wrong with the devicetree blob? I mean the same dtb is working, when I boot the board with uboot. I use ptxdist to build the kernel image and to build the tx53.dtb from tx53.dts Are there some special settings to build the dtb for use with barebox? What can be wrong with the dtb. Best regards, Patrick ------ Originalnachricht ------ Von: "Sascha Hauer" <s.hauer@pengutronix.de> An: "Dr. Patrick Langfeld" <patrick.langfeld@optimeas.de> Cc: barebox@lists.infradead.org Gesendet: 13.05.2013 06:59:12 Betreff: Re: Error when starting kernel with devicetree on tx53 >On Sun, May 12, 2013 at 06:12:11PM +0000, Dr. Patrick Langfeld wrote: >> >> Loading OS U-Boot uImage '/mnt/tftp/uImage' >> OS image is at 0x70008000-0x70233917 >> Loading devicetree from '/mnt/tftp/tx53.dtb' >> /mnt/tftp/tx53.dtb is not an oftree but unknown >> bad magic: 0x0000f085 > >Your problem is that this not a devicetree blob. >Of course barebox should not crash then, this seems to be a bug. > >Sascha > >-- >Pengutronix e.K. | | >Industrial Linux Solutions | http://www.pengutronix.de/ | >Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | >Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | > _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Error when starting kernel with devicetree on tx53 2013-05-13 8:43 ` Re[2]: " Dr. Patrick Langfeld @ 2013-05-13 12:44 ` Sascha Hauer 0 siblings, 0 replies; 4+ messages in thread From: Sascha Hauer @ 2013-05-13 12:44 UTC (permalink / raw) To: Dr. Patrick Langfeld; +Cc: barebox On Mon, May 13, 2013 at 08:43:58AM +0000, Dr. Patrick Langfeld wrote: > Thanks Sascha, > but whats wrong with the devicetree blob? > I mean the same dtb is working, when I boot the board with uboot. > > I use ptxdist to build the kernel image and to build the tx53.dtb > from tx53.dts > > Are there some special settings to build the dtb for use with barebox? > > What can be wrong with the dtb. A dtb must have 0xd00dfeed (big endian) in the first 4 bytes. Your dtb seems to have 0x0000f085 instead so barebox doesn't recognize this as dtb. You could do a: md -s /mnt/tftp/tx53.dtb on the commandline. You should see the magic. Then afterwards you can add the following to commands/bootm.c just below the line printing "...is not an oftree but...": memory_display(fdt, 0, 0x100, 4, 0); The result should be identical and both should have 0xedfe0dd0 as the first value. Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-05-13 12:45 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <emde4cb769-926c-4395-89e6-073d8c931261@plh001-think> 2013-05-12 18:12 ` Error when starting kernel with devicetree on tx53 Dr. Patrick Langfeld 2013-05-13 4:59 ` Sascha Hauer 2013-05-13 8:43 ` Re[2]: " Dr. Patrick Langfeld 2013-05-13 12:44 ` Sascha Hauer
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox