- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
.> admin : sorry I have posted the same question on the wrong place ( in NIOS Linux).
I'm a Linux/SoC beginner and trying to generate my Linux environment for the SoCrates board from EBV. In the first step I have created an SD card using the pre-build images and script from socrates-training. This works fine. I have finished the installation (linux-socfpga-gsrd-13.1-src.bsx) and build process without any errors but the generation process has created only a zImage and no uImage. I found following files as result of my build process: hitex@ubuntu:~/altera-yocto/build_gsrd-image/tmp/deploy/images$ ls -l total 483188 -rw-r--r-- 1 hitex hitex 114673664 2015-01-20 09:01 altera-gsrd-image-socfpga_cyclone5-20150120131804.rootfs.cpio -rw-r--r-- 1 hitex hitex 152550400 2015-01-20 09:01 altera-gsrd-image-socfpga_cyclone5-20150120131804.rootfs.ext3 -rw-r--r-- 1 hitex hitex 117637120 2015-01-20 09:03 altera-gsrd-image-socfpga_cyclone5-20150120131804.rootfs.jffs2 -rw-r--r-- 1 hitex hitex 56007193 2015-01-20 09:02 altera-gsrd-image-socfpga_cyclone5-20150120131804.rootfs.tar.gz lrwxrwxrwx 1 hitex hitex 61 2015-01-20 09:01 altera-gsrd-image-socfpga_cyclone5.cpio -> altera-gsrd-image-socfpga_cyclone5-20150120131804.rootfs.cpio lrwxrwxrwx 1 hitex hitex 61 2015-01-20 09:01 altera-gsrd-image-socfpga_cyclone5.ext3 -> altera-gsrd-image-socfpga_cyclone5-20150120131804.rootfs.ext3 lrwxrwxrwx 1 hitex hitex 62 2015-01-20 09:03 altera-gsrd-image-socfpga_cyclone5.jffs2 -> altera-gsrd-image-socfpga_cyclone5-20150120131804.rootfs.jffs2 lrwxrwxrwx 1 hitex hitex 63 2015-01-20 09:02 altera-gsrd-image-socfpga_cyclone5.tar.gz -> altera-gsrd-image-socfpga_cyclone5-20150120131804.rootfs.tar.gz -rw-r--r-- 1 hitex hitex 3379224 2015-01-20 08:42 modules-3.9.0-r1-socfpga_cyclone5.tgz -rw-r--r-- 1 hitex hitex 294 2015-01-20 08:59 README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt lrwxrwxrwx 1 hitex hitex 46 2015-01-20 08:43 vmlinux -> vmlinux-1.0-r1-socfpga_cyclone5-20150120131804 -rw-r--r-- 1 hitex hitex 76221877 2015-01-20 08:42 vmlinux-1.0-r1-socfpga_cyclone5-20150120131804 lrwxrwxrwx 1 hitex hitex 49 2015-01-20 08:42 zImage -> zImage-1.0-r1-socfpga_cyclone5-20150120131804.bin -rw-r--r-- 1 hitex hitex 3202816 2015-01-20 08:42 zImage-1.0-r1-socfpga_cyclone5-20150120131804.bin -rw-r--r-- 1 hitex hitex 3202816 2015-01-20 06:45 zImage-3.9.0 lrwxrwxrwx 1 hitex hitex 49 2015-01-20 08:43 zImage-socfpga_cyclone5.bin -> zImage-1.0-r1-socfpga_cyclone5-20150120131804.bin As the result my searches I have created my uImage using following script: root@ubuntu:/home/hitex/soc_1# mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n "SoC FPGA 2015.01.21" -d zImage uImage Image Name: SoC FPGA 2015.01.21 Created: Wed Jan 21 05:20:47 2015 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3202816 Bytes = 3127.75 kB = 3.05 MB Load Address: 0x00008000 Entry Point: 0x00008000 Now I have created my SD card using my images. The boot process stops after the message "Starting kernel ...": U-Boot SPL 2013.01.01 (Jan 24 2014 - 11:22:14) BOARD : SoCrates Cyclone V-SoC Board SDRAM: Initializing MMR registers SDRAM: Calibrating PHY SEQ.C: Preparing to start memory calibration SEQ.C: CALIBRATION PASSED ALTERA DWMMC: 0 U-Boot 2013.01.01 (Jan 24 2014 - 11:26:34) CPU : Altera SOCFPGA Platform BOARD : SoCrates Cyclone V-SoC Board DRAM: 1 GiB MMC: ALTERA DWMMC: 0 In: serial Out: serial Err: serial Net: mii0 Hit any key to stop autoboot: 0 3202880 bytes read in 1136 ms (2.7 MiB/s) 17905 bytes read in 44 ms (396.5 KiB/s) # # Booting kernel from Legacy Image at 10000000 ... Image Name: SoC FPGA 2015.01.21 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3202816 Bytes = 3.1 MiB Load Address: 00008000 Entry Point: 00008000 # # Flattened Device Tree blob at 00f00000 Booting using the fdt blob at 0x00f00000 Loading Kernel Image ... OK OK Loading Device Tree to 03ff8000, end 03fff5f0 ... OK Starting kernel ... In the 2nd step I have copied the original uImage from socrates-.training and the system has bin started. My generated uImage is definitely defeat! I have also generated the kernel as described here: http://www.alterawiki.com/wiki/compiling_u-boot_and_linux_kernel_for_cyclone_v_soc. Same result :mad: Please help me! How can I create a working uImage?Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
solved. After generating a new device tree file (dtb) linux is booting.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page