bc10/rowboat-eclair-dsp-2
[
Front page
] [
New
|
List of pages
|
Search
|
Recent changes
]
Start:
[[bc10/rowboat]]
- Contents
#contents
* Summary [#c22b8cdb]
>
The previous section has argued what are the requirements...
how to obtained the mandatory files and explained why the...
stack and explains how to integrate the DSP stack with ro...
* SGX and DSP integration, the DSP stack [#j02d2aa9]
**Build [#sed7078f]
>
Execute the command below, and build the Android kernel, ...
$ make TARGET_PRODUCT=beagleboard BUILD_WITH_GST=true dv...
***Fixing build errors [#h16eb971]
>
Since the kernel version is updated to 2.6.32, some error...
error message and how to fix these errors are discussed. ...
and the fixed code are compared. However, this section do...
errors happen.
~
>
1. external/ti-dsp/dvsdk_3_00_02_44/dsplink_1_61_03/packa...
>
~/rowboat-eclair-dsp/external/ti-dsp/dvsdk_3_00_02_44/ds...
>
$ diff -u omap3530_phy_shmem.c.orig omap3530_phy_shmem.c
--- omap3530_phy_shmem.c.orig 2010-06-29 20:53:20.341371...
+++ omap3530_phy_shmem.c 2010-07-05 14:19:04.614552881 +...
@@ -128,12 +128,12 @@
halObject = (OMAP3530_HalObj *) halObj ;
- halObject->generalCtrlBase = (Uint32)IO_ADDRESS(GEN...
- halObject->iva2CmBase = (Uint32)IO_ADDRESS(IVA...
- halObject->coreCmBase = (Uint32)IO_ADDRESS(COR...
- halObject->perCmBase = (Uint32)IO_ADDRESS(PER...
- halObject->iva2PrmBase = (Uint32)IO_ADDRESS(IVA...
- halObject->mailboxBase = (Uint32)IO_ADDRESS(MAI...
+ halObject->generalCtrlBase = (Uint32)ioremap(GENERA...
+ halObject->iva2CmBase = (Uint32)ioremap(IVA2_C...
+ halObject->coreCmBase = (Uint32)ioremap(CORE_C...
+ halObject->perCmBase = (Uint32)ioremap(PER_CM...
+ halObject->iva2PrmBase = (Uint32)ioremap(IVA2_P...
+ halObject->mailboxBase = (Uint32)ioremap(MAILBO...
>
2. external/ti-dsp/dvsdk_3_00_02_44/codec_engine_2_24_01/...
>
~/rowboat-eclair-dsp/external/ti-dsp/dvsdk_3_00_02_44/co...
>
$ diff -u cmemk.c.orig cmemk.c
--- cmemk.c.orig 2010-06-29 21:05:39.718696468 +0900
+++ cmemk.c 2010-07-05 14:28:27.767315616 +0900
@@ -1084,7 +1084,7 @@
static int set_cached(struct vm_area_struct *vma)
{
vma->vm_page_prot = __pgprot(pgprot_val(vma->vm_pag...
- (L_PTE_CACHEABLE | L_P...
+ (L_PTE_MT_WRITETHROUGH...
);
vma->vm_flags |= VM_RESERVED | VM_IO;
>
3. external/ti-dsp/dvsdk_3_00_02_44/codec_engine_2_24_01/...
>
~/rowboat-eclair-dsp/external/ti-dsp/dvsdk_3_00_02_44/co...
>
$ diff -u sdmak.c.orig sdmak.c
--- sdmak.c.orig 2010-06-29 21:13:45.434697722 +0900
+++ sdmak.c 2010-06-29 21:22:33.300049114 +0900
@@ -42,8 +42,8 @@
#include <asm/arch/tc.h>
#else
#include <mach/hardware.h>
-#include <mach/dma.h>
-#include <mach/tc.h>
+#include <plat/dma.h>
+#include <linux/tc.h>
#endif
/*
>
4. external/ti-dsp/dvsdk_3_00_02_44/dmai_2_00_01_04/packa...
linux/Display_fbdev.c:45:29: error: mach/omapfb.h: No su...
>
diff -u Display_fbdev.c.orig Display_fbdev.c
--- Display_fbdev.c.orig 2010-06-29 21:48:52.347886578 +...
+++ Display_fbdev.c 2010-06-29 21:46:37.214483328 +0900
@@ -42,7 +42,7 @@
#include <linux/fb.h>
#ifdef Dmai_Device_omap3530
- #include <mach/omapfb.h>
+ #include <linux/omapfb.h>
#else
// #include <video/davincifb.h>
#endif
>
5. external/ti-dsp/dvsdk_3_00_02_44/dmai_2_00_01_04/packa...
~/rowboat-eclair-dsp/kernel/include/asm-generic/signal.h...
>
$ diff -u Makefile.orig Makefile
--- Makefile.orig 2010-06-29 22:01:32.699753968 +0900
+++ Makefile 2010-06-29 22:12:20.791781379 +0900
@@ -103,7 +103,7 @@
CPP_FLAGS += -I$(XDC_INSTALL_DIR)/packages -I$(DMAI_INS...
-GCC_CPP_FLAGS += $(CPP_FLAGS) -I$(LINUXKERNEL_INSTALL_D...
+GCC_CPP_FLAGS += $(CPP_FLAGS) -I$(LINUXKERNEL_INSTALL_D...
C64P_CPP_FLAGS += $(CPP_FLAGS) -I$(BIOS_INSTALL_DIR)/pa...
#GCC_C_FLAGS += $(C_FLAGS) -Wall -Werror $(ANDROID_CFLA...
>
6. external/ti-dsp/dvsdk_3_00_02_44/dmai_2_00_01_04/packa...
linux/omap3530/Framecopy_accel.c:51:32: error: linux/oma...
'''include path''' that has changed at 5 returns to the o...
$ diff -u Makefile.modified Makefile
--- Makefile.modified 2010-06-29 22:12:20.791781379 +0900
+++ Makefile 2010-06-29 22:01:32.699753968 +0900
@@ -103,7 +103,7 @@
CPP_FLAGS += -I$(XDC_INSTALL_DIR)/packages -I$(DMAI_INS...
-GCC_CPP_FLAGS += $(CPP_FLAGS) -I$(LINUXKERNEL_INSTALL_D...
+GCC_CPP_FLAGS += $(CPP_FLAGS) -I$(LINUXKERNEL_INSTALL_D...
C64P_CPP_FLAGS += $(CPP_FLAGS) -I$(BIOS_INSTALL_DIR)/pa...
#GCC_C_FLAGS += $(C_FLAGS) -Wall -Werror $(ANDROID_CFLA...
*** The adjustments for avoiding the errors that occurs d...
>
Because of the adjustments shown above, the build process...
during/dafter boot process is finished.~
>
1. cmemk~
After a kernel module is loaded, the error message, '''cm...
This is how to fix this error.
>
First, parts of config in kernel is rearranged.
$ cd source buid/envsetup.sh
$ cd kernel
$ make menuconfig
Select Kernel hacking, chooses Enable unused/obsolete exp...
'''make clean''' command, delete the files that have been...
adjustments, rebuild these files.
>
external/ti-dsp/dvsdk_3_00_02_44/codec_engine_2_24_01/cet...
$ diff -u cmemk.c.orig cmemk.c
--- cmemk.c.orig 2010-06-29 21:05:39.718696468 +0900
+++ cmemk.c 2010-07-05 14:27:31.782329823 +0900
@@ -1026,10 +1026,10 @@
void show_pte(struct mm_struct *mm, unsigned long addr)
{
pgd_t *pgd;
-
+#if 0
if (!mm)
mm = &init_mm;
-
+#endif
printk(KERN_ALERT "pgd = %p\n", mm->pgd);
pgd = pgd_offset(mm, addr);
printk(KERN_ALERT "[%08lx] *pgd=%08lx", addr, p...
@@ -1084,7 +1084,7 @@
static int set_cached(struct vm_area_struct *vma)
{
vma->vm_page_prot = __pgprot(pgprot_val(vma->vm_pag...
- (L_PTE_CACHEABLE | L_P...
+ (L_PTE_MT_WRITETHROUGH...
);
>
external/ti-dsp/dvsdk_3_00_02_44/linuxutils_2_24_02/packa...
$ diff -u cmemk.c.orig cmemk.c
--- cmemk.c.orig 2010-07-01 19:58:23.436891292 +0900
+++ cmemk.c 2010-07-01 19:59:01.642238507 +0900
@@ -1026,10 +1026,10 @@
void show_pte(struct mm_struct *mm, unsigned long addr)
{
pgd_t *pgd;
-
+#if 0
if (!mm)
mm = &init_mm;
-
+#endif
printk(KERN_ALERT "pgd = %p\n", mm->pgd);
pgd = pgd_offset(mm, addr);
printk(KERN_ALERT "[%08lx] *pgd=%08lx", addr, p...
>
2. DMAI~
DMAI (DaVinci Multimedia Aplication Interface) does not w...
which is a part of omap kernel. Make the default configur...
>
external/ti-dsp/dvsdk_3_00_02_44/dmai_2_00_01_04/packages...
>
$ diff -u Display.c.orig Display.c
--- Display.c.orig 2010-07-05 16:23:35.693115944 +0900
+++ Display.c 2010-07-01 20:13:28.761149734 +0900
@@ -523,6 +523,7 @@
Char* displayDevice, VideoStd_Type ...
Int *rotation)
{
+#if 0
/* #ifdef Dmai_Device_omap3530 */
FsOptionsSequence *sequence = NULL;
Display_Output currentDisplayOutput;
>
The changes described above are added, then execute build.
$ make TARGET_PRODUCT=beagleboard BUILD_WITH_GST=true dv...
Build of DSP stack from the beginning, follow the directi...
$ make TARGET_PRODUCT=beagleboard BUILD_WITH_GST=true dv...
$ make TARGET_PRODUCT=beagleboard BUILD_WITH_GST=true dv...
>
For the details of build control, please look at each var...
**Creating rootfs [#kd853c36]
>
As the build process is completed without errors, rootfs ...
$ cd out/target/product/beagleboad
$ mkdir android_rootfs
$ cp -r root/* android_rootfs
$ cp -r system android_rootfs
**Network configuration [#od1c8fd2]
>
To be booted into rowboat, change the configuration of an...
>
The configuration file is set up for each device, and the...
The name of device is only used as it is listed on Hardwa...
than two words, only the first word is valid, and it is w...
BeagleBoard, it is listed on Hardware as OMAP beagle boar...
The contents of the file is shown as below.
on boot
setprop net.dns1 8.8.8.8
service lan-setup /system/etc/init.omap3.sh
oneshot
DNS server in the configuration shown above is set for Go...
for individual network environments. DNS server address o...
>
Create '''/android_rootfs/system/etc/init.omap3.sh''', an...
#!/system/bin/sh
netcfg eth0 up
netcfg eth0 dhcp
>
This file enables USB ether to obtain the DHCP address an...
>
To use Wifi, prepare for the readable kernel module, and ...
such as system/etc/Wireless of android_rootfs. Then, Wif...
capable of data communications. ~
>
#!/system/bin/sh
insmod /system/lib/modules/rt3070sta.ro
netcfg ra0 up
netcfg ra0 dhcp
*Reference [#a86ec12a]
-Kernel 2.6.32 with DSP & SGX Drivers~
--http://groups.google.com/group/rowboat/browse_thread/th...
-Getting build errors after repo sync~
--http://groups.google.com/group/rowboat/browse_thread/th...
-Rowboat Android Compile for BeagleBoard~
--http://tw.myblog.yahoo.com/stevegigijoe/article?mid=230...
End:
[[bc10/rowboat]]
- Contents
#contents
* Summary [#c22b8cdb]
>
The previous section has argued what are the requirements...
how to obtained the mandatory files and explained why the...
stack and explains how to integrate the DSP stack with ro...
* SGX and DSP integration, the DSP stack [#j02d2aa9]
**Build [#sed7078f]
>
Execute the command below, and build the Android kernel, ...
$ make TARGET_PRODUCT=beagleboard BUILD_WITH_GST=true dv...
***Fixing build errors [#h16eb971]
>
Since the kernel version is updated to 2.6.32, some error...
error message and how to fix these errors are discussed. ...
and the fixed code are compared. However, this section do...
errors happen.
~
>
1. external/ti-dsp/dvsdk_3_00_02_44/dsplink_1_61_03/packa...
>
~/rowboat-eclair-dsp/external/ti-dsp/dvsdk_3_00_02_44/ds...
>
$ diff -u omap3530_phy_shmem.c.orig omap3530_phy_shmem.c
--- omap3530_phy_shmem.c.orig 2010-06-29 20:53:20.341371...
+++ omap3530_phy_shmem.c 2010-07-05 14:19:04.614552881 +...
@@ -128,12 +128,12 @@
halObject = (OMAP3530_HalObj *) halObj ;
- halObject->generalCtrlBase = (Uint32)IO_ADDRESS(GEN...
- halObject->iva2CmBase = (Uint32)IO_ADDRESS(IVA...
- halObject->coreCmBase = (Uint32)IO_ADDRESS(COR...
- halObject->perCmBase = (Uint32)IO_ADDRESS(PER...
- halObject->iva2PrmBase = (Uint32)IO_ADDRESS(IVA...
- halObject->mailboxBase = (Uint32)IO_ADDRESS(MAI...
+ halObject->generalCtrlBase = (Uint32)ioremap(GENERA...
+ halObject->iva2CmBase = (Uint32)ioremap(IVA2_C...
+ halObject->coreCmBase = (Uint32)ioremap(CORE_C...
+ halObject->perCmBase = (Uint32)ioremap(PER_CM...
+ halObject->iva2PrmBase = (Uint32)ioremap(IVA2_P...
+ halObject->mailboxBase = (Uint32)ioremap(MAILBO...
>
2. external/ti-dsp/dvsdk_3_00_02_44/codec_engine_2_24_01/...
>
~/rowboat-eclair-dsp/external/ti-dsp/dvsdk_3_00_02_44/co...
>
$ diff -u cmemk.c.orig cmemk.c
--- cmemk.c.orig 2010-06-29 21:05:39.718696468 +0900
+++ cmemk.c 2010-07-05 14:28:27.767315616 +0900
@@ -1084,7 +1084,7 @@
static int set_cached(struct vm_area_struct *vma)
{
vma->vm_page_prot = __pgprot(pgprot_val(vma->vm_pag...
- (L_PTE_CACHEABLE | L_P...
+ (L_PTE_MT_WRITETHROUGH...
);
vma->vm_flags |= VM_RESERVED | VM_IO;
>
3. external/ti-dsp/dvsdk_3_00_02_44/codec_engine_2_24_01/...
>
~/rowboat-eclair-dsp/external/ti-dsp/dvsdk_3_00_02_44/co...
>
$ diff -u sdmak.c.orig sdmak.c
--- sdmak.c.orig 2010-06-29 21:13:45.434697722 +0900
+++ sdmak.c 2010-06-29 21:22:33.300049114 +0900
@@ -42,8 +42,8 @@
#include <asm/arch/tc.h>
#else
#include <mach/hardware.h>
-#include <mach/dma.h>
-#include <mach/tc.h>
+#include <plat/dma.h>
+#include <linux/tc.h>
#endif
/*
>
4. external/ti-dsp/dvsdk_3_00_02_44/dmai_2_00_01_04/packa...
linux/Display_fbdev.c:45:29: error: mach/omapfb.h: No su...
>
diff -u Display_fbdev.c.orig Display_fbdev.c
--- Display_fbdev.c.orig 2010-06-29 21:48:52.347886578 +...
+++ Display_fbdev.c 2010-06-29 21:46:37.214483328 +0900
@@ -42,7 +42,7 @@
#include <linux/fb.h>
#ifdef Dmai_Device_omap3530
- #include <mach/omapfb.h>
+ #include <linux/omapfb.h>
#else
// #include <video/davincifb.h>
#endif
>
5. external/ti-dsp/dvsdk_3_00_02_44/dmai_2_00_01_04/packa...
~/rowboat-eclair-dsp/kernel/include/asm-generic/signal.h...
>
$ diff -u Makefile.orig Makefile
--- Makefile.orig 2010-06-29 22:01:32.699753968 +0900
+++ Makefile 2010-06-29 22:12:20.791781379 +0900
@@ -103,7 +103,7 @@
CPP_FLAGS += -I$(XDC_INSTALL_DIR)/packages -I$(DMAI_INS...
-GCC_CPP_FLAGS += $(CPP_FLAGS) -I$(LINUXKERNEL_INSTALL_D...
+GCC_CPP_FLAGS += $(CPP_FLAGS) -I$(LINUXKERNEL_INSTALL_D...
C64P_CPP_FLAGS += $(CPP_FLAGS) -I$(BIOS_INSTALL_DIR)/pa...
#GCC_C_FLAGS += $(C_FLAGS) -Wall -Werror $(ANDROID_CFLA...
>
6. external/ti-dsp/dvsdk_3_00_02_44/dmai_2_00_01_04/packa...
linux/omap3530/Framecopy_accel.c:51:32: error: linux/oma...
'''include path''' that has changed at 5 returns to the o...
$ diff -u Makefile.modified Makefile
--- Makefile.modified 2010-06-29 22:12:20.791781379 +0900
+++ Makefile 2010-06-29 22:01:32.699753968 +0900
@@ -103,7 +103,7 @@
CPP_FLAGS += -I$(XDC_INSTALL_DIR)/packages -I$(DMAI_INS...
-GCC_CPP_FLAGS += $(CPP_FLAGS) -I$(LINUXKERNEL_INSTALL_D...
+GCC_CPP_FLAGS += $(CPP_FLAGS) -I$(LINUXKERNEL_INSTALL_D...
C64P_CPP_FLAGS += $(CPP_FLAGS) -I$(BIOS_INSTALL_DIR)/pa...
#GCC_C_FLAGS += $(C_FLAGS) -Wall -Werror $(ANDROID_CFLA...
*** The adjustments for avoiding the errors that occurs d...
>
Because of the adjustments shown above, the build process...
during/dafter boot process is finished.~
>
1. cmemk~
After a kernel module is loaded, the error message, '''cm...
This is how to fix this error.
>
First, parts of config in kernel is rearranged.
$ cd source buid/envsetup.sh
$ cd kernel
$ make menuconfig
Select Kernel hacking, chooses Enable unused/obsolete exp...
'''make clean''' command, delete the files that have been...
adjustments, rebuild these files.
>
external/ti-dsp/dvsdk_3_00_02_44/codec_engine_2_24_01/cet...
$ diff -u cmemk.c.orig cmemk.c
--- cmemk.c.orig 2010-06-29 21:05:39.718696468 +0900
+++ cmemk.c 2010-07-05 14:27:31.782329823 +0900
@@ -1026,10 +1026,10 @@
void show_pte(struct mm_struct *mm, unsigned long addr)
{
pgd_t *pgd;
-
+#if 0
if (!mm)
mm = &init_mm;
-
+#endif
printk(KERN_ALERT "pgd = %p\n", mm->pgd);
pgd = pgd_offset(mm, addr);
printk(KERN_ALERT "[%08lx] *pgd=%08lx", addr, p...
@@ -1084,7 +1084,7 @@
static int set_cached(struct vm_area_struct *vma)
{
vma->vm_page_prot = __pgprot(pgprot_val(vma->vm_pag...
- (L_PTE_CACHEABLE | L_P...
+ (L_PTE_MT_WRITETHROUGH...
);
>
external/ti-dsp/dvsdk_3_00_02_44/linuxutils_2_24_02/packa...
$ diff -u cmemk.c.orig cmemk.c
--- cmemk.c.orig 2010-07-01 19:58:23.436891292 +0900
+++ cmemk.c 2010-07-01 19:59:01.642238507 +0900
@@ -1026,10 +1026,10 @@
void show_pte(struct mm_struct *mm, unsigned long addr)
{
pgd_t *pgd;
-
+#if 0
if (!mm)
mm = &init_mm;
-
+#endif
printk(KERN_ALERT "pgd = %p\n", mm->pgd);
pgd = pgd_offset(mm, addr);
printk(KERN_ALERT "[%08lx] *pgd=%08lx", addr, p...
>
2. DMAI~
DMAI (DaVinci Multimedia Aplication Interface) does not w...
which is a part of omap kernel. Make the default configur...
>
external/ti-dsp/dvsdk_3_00_02_44/dmai_2_00_01_04/packages...
>
$ diff -u Display.c.orig Display.c
--- Display.c.orig 2010-07-05 16:23:35.693115944 +0900
+++ Display.c 2010-07-01 20:13:28.761149734 +0900
@@ -523,6 +523,7 @@
Char* displayDevice, VideoStd_Type ...
Int *rotation)
{
+#if 0
/* #ifdef Dmai_Device_omap3530 */
FsOptionsSequence *sequence = NULL;
Display_Output currentDisplayOutput;
>
The changes described above are added, then execute build.
$ make TARGET_PRODUCT=beagleboard BUILD_WITH_GST=true dv...
Build of DSP stack from the beginning, follow the directi...
$ make TARGET_PRODUCT=beagleboard BUILD_WITH_GST=true dv...
$ make TARGET_PRODUCT=beagleboard BUILD_WITH_GST=true dv...
>
For the details of build control, please look at each var...
**Creating rootfs [#kd853c36]
>
As the build process is completed without errors, rootfs ...
$ cd out/target/product/beagleboad
$ mkdir android_rootfs
$ cp -r root/* android_rootfs
$ cp -r system android_rootfs
**Network configuration [#od1c8fd2]
>
To be booted into rowboat, change the configuration of an...
>
The configuration file is set up for each device, and the...
The name of device is only used as it is listed on Hardwa...
than two words, only the first word is valid, and it is w...
BeagleBoard, it is listed on Hardware as OMAP beagle boar...
The contents of the file is shown as below.
on boot
setprop net.dns1 8.8.8.8
service lan-setup /system/etc/init.omap3.sh
oneshot
DNS server in the configuration shown above is set for Go...
for individual network environments. DNS server address o...
>
Create '''/android_rootfs/system/etc/init.omap3.sh''', an...
#!/system/bin/sh
netcfg eth0 up
netcfg eth0 dhcp
>
This file enables USB ether to obtain the DHCP address an...
>
To use Wifi, prepare for the readable kernel module, and ...
such as system/etc/Wireless of android_rootfs. Then, Wif...
capable of data communications. ~
>
#!/system/bin/sh
insmod /system/lib/modules/rt3070sta.ro
netcfg ra0 up
netcfg ra0 dhcp
*Reference [#a86ec12a]
-Kernel 2.6.32 with DSP & SGX Drivers~
--http://groups.google.com/group/rowboat/browse_thread/th...
-Getting build errors after repo sync~
--http://groups.google.com/group/rowboat/browse_thread/th...
-Rowboat Android Compile for BeagleBoard~
--http://tw.myblog.yahoo.com/stevegigijoe/article?mid=230...
Page: