Mango520에 Ubuntu 올리기 CRZ-Technology.

Slides:



Advertisements
Similar presentations
Linux Booting Procedure
Advertisements

Lab 4 Department of Computer Science and Information Engineering National Taiwan University Lab4 - Bootloader 2014/10/14/ 13 1.
Exploring the UNIX File System and File Security
System initialisation
Buildroot CS-423 Dick Steflik. buildroot uClibc – C library for developing for embedded Linux –much smaller than GNU C tools to make a cross-compilation.
Partitioning the SD card ● First of all remember that check the drive which you are formatting otherwise you will loose all your data, “SDA” is reserved.
1 Booting Linux with U-boot Jason Kridner June 7, 2010 Archived at:
History 8xxROM by Magnus Damm PPCBoot (1999) – v (2000) U−Boot−0.1.0 (2002) extended functionality, new architectures Das U-Boot.
Linux-MVME Targets Using Motorola Board Support
Embedded Programming and Robotics Lesson 13 Basic Linux 1.
COMPUTER SYSTEM LABORATORY Lab8 - Debugging II. Lab 8 Experimental Goal Learn how to debug Linux in source-level by Domingo and diagnose target boards.
Spring 2014 SILICON VALLEY UNIVERSITY CONFIDENTIAL 1 Introduction to Embedded Systems Dr. Jerry Shiao, Silicon Valley University.
COMPUTER SYSTEM LABORATORY Lab4 - Bootloader. Lab 4 Experimental Goal Learn how to build U-Boot bootloader for PXA /10/8/ 142.
Lab 3 Department of Computer Science and Information Engineering National Taiwan University Lab3 - Cross Tools 2014/10/7/ 20 1.
Linux+ Guide to Linux Certification Chapter Three Linux Installation and Usage.
Linux Booting Procedure
1 Embedded Linux porting Speaker: Yi-Ji Jheng Date:
Embedded Linux porting Kernel
Computer System Laboratory
Include/mango100.h 설명 망고 100 보드로 놀아보자 -7 cafe.naver.com/embeddedcrazyboys.
Bootloader 부트로더.
CIS 191 – Lesson 2 System Administration. CIS 191 – Lesson 2 System Architecture Component Architecture –The OS provides the simple components from which.
Lab 11 Department of Computer Science and Information Engineering National Taiwan University Lab11 - Porting 2014/12/9/ 26 1.
Porting Android to Beagleboard
Disks, Filesystems 1.  sudo and PATH (environment)  disks  partitioning  formatting file systems: mkfs command  checking file system integrity: fsck.
RCE Platform Technology (RPT) Jim Panetta Tool Installation.
©SIProp Project, Boot File of Pandaboard Noritsuna Imamura
Porting Operating Systems Phan Duy Hùng (PhD) ES Lecturer – Hanoi FPT University.
12 1 Embedded Software Lab. OS 실습 Embedded Software Lab. 박대준, 박은수 Lecture 3. Kernel fusing, printk.
Chapter Two Exploring the UNIX File System and File Security.
Conventions Department of Computer Science and Information Engineering National Taiwan University Conventions 2014/9/16/ 3 1.
Slackware 9.1 Installation First prompt in the installation process.
COMPUTER SYSTEM LABORATORY Lab6 - Root Filesystem.
Porting Linux Linux onto the Puppeteer SA1110. The Puppeteer board –SA1110 CPU –SMSC LAN91C96I ethernet –8 Mb Flash Intel 28F320C3 Boot block flash –32.
망고 100 보드로 놀아보자 -10 망고 100 NAND,SD map
TI Information – Selective Disclosure Boot TI Keystone II Linux Kernel (RAM File-system) Vincent Han Mar,
Linux Filesystem WeeSan Lee. Roadmap Disk Partitions The Filesystem Filesystem Mouting & Umounting File Tree File Type File Permission.
CSCI 330 UNIX and Network Programming Unit XX: Linux Administration.
Linux Development Lecture 7. Schedule Linux Root Filesystem.
Lab 5 Department of Computer Science and Information Engineering National Taiwan University Lab5 – Bootloader + OS Kernel 2015/10/27/ 25 1.
Lab 8 Department of Computer Science and Information Engineering National Taiwan University Lab8 - Root Filesystem 2015/11/10/ 22 1.
Xilinx Confidential Unpublished Work © Copyright 2012 Xilinx ZYNQ PetaLinux Guide.
Implementation of Embedded OS
솔라리스 10 Chapter 14 하드디스크 관리 Solaris1. 하드디스크 추가하기.
Lab 5 Department of Computer Science and Information Engineering National Taiwan University Lab5 - OS Kernel 2014/10/21/ 16 1.
Windows Server 2008 VSP Windows Kernel Applications Non- Hypervisor Aware OS Windows Server 2003, 2008 Windows Kernel VSC VMBus Emulation “Designed.
WP1- Documentation Booting Petalinux from TFTP and using Network file system Section for developers Zynq 7020 R. Assiro.
1 Free Electrons. Kernel, drivers and embedded Linux development, consulting, training and support. http//free-electrons.com Embedded Linux system development.
1 Free Electrons. Kernel, drivers and embedded Linux development, consulting, training and support. http//free-electrons.com The GRUB bootloader Michael.
1 Free Electrons. Kernel, drivers and embedded Linux development, consulting, training and support. http//free-electrons.com Embedded Linux Training System.
1 Free Electrons. Kernel, drivers and embedded Linux development, consulting, training and support. http//free-electrons.com The U-boot bootloader Michael.
The GRUB bootloader Michael Opdenacker Thomas Petazzoni Free Electrons
Filesystem Hierarchy Operating systems I800
Computer System Laboratory
Implementation of Embedded OS
Filesystem Management and Backups
Computer System Laboratory
Development Environment Introduction
UBUNTU INSTALLATION
Basic Commands ls cp ls –l (in detail format) echo ls –a
Unix System Administration
Containers and Virtualisation
Linux Basic Commands Visit to more Learning Resources.
Implementation of Embedded OS
Linux-MVME Targets Using Motorola Board Support
Computer System Laboratory
Boot Process Mark Stanovich COP 5641 / CIS 4930.
Workshop GPIO I2C SPI Panic1 woensdag 10 april 2019.
Computer System Laboratory
Presentation transcript:

Mango520에 Ubuntu 올리기 CRZ-Technology

Linux 올리는 순서 Bootloader 올리기 Kernel Image 올리기 Root File System 올리기

필요한 파일 및 툴 BL1 : mango520-bl1.bin BL2 : smdk5250-spl.bin UBOOT_BIN : u-boot.bin KERNEL : zImage GNOME : rootfs.tar

SD 카드 파티션 나누기 sdcard_format() { echo "Formatting SD card !!!" ( # Pre Partition Delete echo d echo 6 echo 5 echo 4 echo 3 echo 2 # Partition Create partition_add 1 20480 15523839 echo w echo q ) | fdisk -u $TFLASH > /dev/null 2>&1 }

부트로더 시스템의 하드웨어를 초기화하고 운영체제의 커널을 메모리에 실행시키는 프로그램 하드웨어 초기화 커널과 Rootfs로르 로드하고 실행시킨다. LiLo, GRUB, UBoot

Uboot Universal Bootloader PowerPC와 ARM 기반을 둔 embedded용 bootloader 다양한 cpu 지원 Opensource : sourceforge.net/projects/uboot

Bootloader, Kernel 올리기 # Exynos Partition info # mango520/uboot/arch/arm/include/asm/movi_parition.h # mango520/uboot/arch/arm/cpu/armv7/exynos/movi_partition.c OFFSET_BL1=1 OFFSET_BL2=17 OFFSET_UBOOT=49 OFFSET_TRUSTZONE=1073 OFFSET_KERNEL=4096 OFFSET_ROOTFS=14336 #<BL1 fusing> dd seek=$OFFSET_BL1 count=16 if=./$BL1 of=$TFLASH #<BL2 fusing> dd seek=$OFFSET_BL2 count=32 if=./$BL2 of=$TFLASH #<u-boot fusing> dd seek=$OFFSET_UBOOT if=./$UBOOT_BIN of=$TFLASH ##<Kernel fusing> dd seek=$OFFSET_KERNEL if=./$KERNEL of=$TFLASH

Rootfs 만들기 Rootstock이란? command line tools to create fully configured tarball or VM image image of an ubuntu rootfs from scratch. $ sudo rootstock -d precise --seed ubuntu-standard -x en_US.UTF-8 -f ubuntu -l ubuntu -p ubuntu -i 2G

Rootfs 올리기 write_gnome() { echo echo -n "Gnome Filesystem Create : " mkdir temp mkfs.ext4 "$TFLASH"1 -L gnome > /dev/null 2>&1 mount "$TFLASH"1 temp cd temp tar zxvf ../$GNOME > /dev/null 2>&1 cd .. sync umount temp rm -rf temp print_success "$?" }

스크립트 실행 $ sudo ./mango520_uboot_gnome_writer sdb 520 format sdb 520 bin sdb 520 gnome

Target 보드 설정 및 login $ setenv bootcmd "movi read kernel 0 40008000;bottom 40008000" $ setenv bootargs "quiet rw root=/dev/mmcblk0p1 rootfstype=ext4 console=ttySAC1, 115200 rootwait" $ saveenv $ reset root로 login

기 타 More to do? 오디오, 카메라, 디스플레이 지원 유용한 링크 RootStock https://wiki.ubuntu.com/ARM/RootfsFromScratch Qemu https://wiki.ubuntu.com/ARM/BuildArmPackages