顯示具有 OMAP3 標籤的文章。 顯示所有文章
顯示具有 OMAP3 標籤的文章。 顯示所有文章

星期二, 9月 17, 2013

Add a project on exist AOSP repository


Add a project on exist AOSP repository (ex: realtek android driver)


  • Make a git repository & add/commit files
    cd /hardware/realtek/wlan
    git init
    git add *
    git commit -m "1st release" -a


  • Create .repo/projects
    cd .git
    mkdir -p ../../../../.repo/projects/hardware/realtek/wlan.git
    cp -a * ../../../../.repo/projects/hardware/realtek/wlan.git/

  • Remove local git files & make link to .repo/projects
    rm -rf branches/ config description hooks/ info/ logs/ objects/ refs/
    ln -s ../../../../.repo/projects/hardware/realtek/wlan.git/branches .
    ln -s ../../../../.repo/projects/hardware/realtek/wlan.git/config .
    ln -s ../../../../.repo/projects/hardware/realtek/wlan.git/description .
    ln -s ../../../../.repo/projects/hardware/realtek/wlan.git/hooks .
    ln -s ../../../../.repo/projects/hardware/realtek/wlan.git/info .
    ln -s ../../../../.repo/projects/hardware/realtek/wlan.git/logs .
    ln -s ../../../../.repo/projects/hardware/realtek/wlan.git/objects .
    ln -s ../../../../.repo/projects/hardware/realtek/wlan.git/refs .


  • Edit project.list and manifest.xml

    vi .repo/project.list
- add
 hardware/realtek/wlan
    vi .repo/manifest.xml 
- add
         

星期一, 10月 15, 2012

Upgrade lucid to precise

1. boot.scr mmc init 2;fatload mmc 2 80200000 uImage;bootm 0x80200000 setenv bootargs console=ttyO2,115200n8 mem=512M@0x80000000 root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait mpurate=${mpurate} ethaddr=${ethaddr} omapdss.def_disp=dvi omapfb.mode=dvi:800x600MR-16@60 vram=4M --no-log ps: --no-log is workaround for "init: Failed to create pty - disabling logging for job"

2. apt sources.list modify /etc/apt/sources.list, replace lucid to precise

3. do dist-upgrade apt-get dist-upgrade -o APT::Immediate-Configure=false during dist-upgrade, some configuration file will be changed

4. mkdir lib/modules dir mkdir -p /lib/modules/2.6.37-gb0042ce touch /lib/modules/2.6.37-gb0042ce/modules.dep

5. remove old udev net rules rm /etc/udev/rules.d/70-persistent-net.rules

6. do backup tar cvpf gogobox-ubuntu-precise-20121015.tar.gz --exclude=/proc --exclude=/lost+found --exclude=/mnt --exclude=/sys /

星期一, 12月 20, 2010

Beagle edit boot.scr

Strip the 72byte long uboot header:
dd if=boot.scr of=boot.script bs=1 skip=72

use u-boot mkimage to gen the .scr
mkimage -A arm -T script -C none -n "beaglexm boot script" -d boot.script boot.scr

星期五, 4月 16, 2010

OMAP3 GPIO reset pin

take omap3-evm as reference

1. xxxx.h for mux

MUX_VAL(CP(GPMC_WAIT2), (IEN | PTU | EN | M4)) /*GPIO_64*/\

2. xxx.c for set h-l-h pulse

/* Make GPIO 64 as output pin */
writel(readl(&gpio3_base->oe) & ~(GPIO0), &gpio3_base->oe);

/* Now send a pulse on the GPIO pin */
writel(GPIO0, &gpio3_base->setdataout);
udelay(1);
writel(GPIO0, &gpio3_base->cleardataout);
udelay(1);
writel(GPIO0, &gpio3_base->setdataout);