s3c6410 android 移植Step by step

2023-11-12

Report (2009/03/05)

(转载请说明出处,不得用于商业用途)

 (Linux forum id :hongjiujing)


Porting android on s3c6410
Environment: ubuntu 8.10
Board: XX6410
Kernel version: linux 2.6.24, android 1.0
1.Copy files
Create working location: /mydroid and copy the following files to this location:

Filename
Description
samsung-s3c6410-android.1.0.tar.bz2
Kernel
kandroid-1.1.2.1-20080530.glibc.gz
libiconv-1.12.tar.gz
Toolchain
090227-android-cupcake-rootfs.tar.bz2
Cupcake root file system
u-boot.bin
DNW
Bootloader

Below is the list of  files:

tommy@tommy-desktop:~$ mkdir mydroid
tommy@tommy-desktop:~$ cd mydroid
tommy@tommy-desktop:~/mydroid$ ls
090227-android-cupcake-rootfs.tar.gz  libiconv-1.12.tar.gz
DNW                                   samsung-s3c6410-android.1.0.tar.bz2
kandroid-1.1.2.1-20080530.glibc.tgz   u-boot.bin
2.Installing Toolchain
Please follow the commands below and install the tool chain in the directory mentioned below:
installing libiconv
tommy@tommy-desktop:~$ cd mydroid
tommy@tommy-desktop:~/mydroid$ tar xvf libiconv-1.12.tar.gz
tommy@tommy-desktop:~/mydroid$ cd libiconv-1.12
tommy@tommy-desktop:~/mydroid/libiconv-1.12$ ./configure --prefix=/usr/local
tommy@tommy-desktop:~/mydroid/libiconv-1.12$ make install
tommy@tommy-desktop:~/mydroid/libiconv-1.12$ vi /etc/ld.so.conf
include ld.so.conf.d/*.conf
/usr/local/lib
tommy@tommy-desktop:~/mydroid/libiconv-1.12$ ldconfig


installing toolchain
tommy@tommy-desktop:~$ cd ~/mydroid
tommy@tommy-desktop:~/mydroid$ tar xvf kandroid-1.1.2.1-20080530.glibc.tgz
tommy@tommy-desktop:~/mydroid$ sudo mkdir -p /usr/local/arm
tommy@tommy-desktop:~/mydroid$ sudo mv kandroid-1.1.2.1-20080530.glibc /usr/local/arm
3.Compiling Kernel
Kernel source is compressed by the name of  ‘samsung-s3c6410-android.1.0.tar.bz2’. This is patched for s3c6410 so you don’t need to do this step. Extect this bz2 file by executing command. After extracting the kernel tarball file ‘samsung-s3c6410-android.1.0’

tommy@tommy-desktop:~/mydroid$ tar jxvf samsung-s3c6410-android.1.0.tar.bz2
tommy@tommy-desktop:~/mydroid$ cd samsung-s3c6410-android.1.0

Define the path of  toolchain for cross-compiling. Open file Makefile in this folder ( samsung-s3c6410-android.1.0 ). Go to line 197 and set:

CROSS_COMPILE   := /usr/local/arm/kandroid-1.1.2.1-20080530.glibc/bin/arm-android-linux-gnueabi-

Set the configuration values for the kernel. At first, copy the default configuration files which is located in arch/arm/configs/ to be the configuration file.
tommy@tommy-desktop:~/mydroid/samsung-s3c6410-android.1.0$ cp arch/arm/configs/smdk6410_android_nfs.config ./.config

Change default configurations by excuting ‘make menuconfig’

tommy@tommy-desktop:~/mydroid/samsung-s3c6410-android.1.0$ make menuconfig

please select ‘Boot options’, enter value for ‘Boot options’: boot from nfs file. Follow the below syntax :

root=/dev/nfs rw nfsroot=<server‘s IP>/<Root Path> ,rsize=1024,wsize=1024 ip= <the board’s IP>:<server’s IP>:<DNS’s IP> :255.255.255.0::eth0:off init=/init console=ttySAC0,115200

Please change ip config to suite your PC’s configuration
My values:
root=/dev/nfs rw nfsroot=192.168.11.2:/nfsroot/090227-Android-cupcake-rootfs,rsize=1024,wsize=1024 ip=192.168.11.3:192.168.11.2:192.168.11.2:255.255.255.0::eth0:off init=/init console=ttySAC0,115200s

Please select 'Power management' , set 'Power_Suspend=y'

Finally, make the kernel image file by executing:’make zImage’,copy the image to the tftp root folder.

tommy@tommy-desktop:~/mydroid/samsung-s3c6410-android.1.0$ make zImage

.......
 LD      vmlinux
  SYSMAP  System.map
  SYSMAP  .tmp_System.map
  OBJCOPY arch/arm/boot/Image
  Kernel: arch/arm/boot/Image is ready
  AS      arch/arm/boot/compressed/head.o
  GZIP    arch/arm/boot/compressed/piggy.gz
  AS      arch/arm/boot/compressed/piggy.o
  CC      arch/arm/boot/compressed/misc.o
  LD      arch/arm/boot/compressed/vmlinux
  OBJCOPY arch/arm/boot/zImage
  Kernel: arch/arm/boot/zImage is ready

tommy@tommy-desktop:~/mydroid/samsung-s3c6410-android.1.0$ cp arch/arm/boot/zImage /TFTP
4.install nfs server and copy root file system
Please follow the below commands to install nfs server and copy cupcake root file system into the nfs server’s root folder

tommy@tommy-desktop:~$ cd ~/mydroid
tommy@tommy-desktop:~/mydroid$ tar xvf 090227-android-cupcake-rootfs.tar.gz
tommy@tommy-desktop:~/mydroid$ sudo apt-get install nfs-kernel-server portmap
tommy@tommy-desktop:~/mydroid$ sudo mkdir /nfsroot
tommy@tommy-desktop:~/mydroid$ sudo mv 090227-Android-cupcake-rootfs /nfsroot
tommy@tommy-desktop:~/mydroid$ sudo vim /etc/exports
insert:
/nfsroot/090227-android-cupcake-rootfs *(rw,no_root_squash,no_all_squash)
tommy@tommy-desktop:~/mydroid$ sudo /etc/init.d/nfs-kernel-server restart
5.Porting Android
The first step to port android on S3c6410 board is uploading u-boot.bin . This step is perfomed only 1 time. Because I don’t know how to uploading u-boot.bin on linux environment using USB cable so I move into WindowXP environment and uploading this file using DNW. Please see ‘XX6410 linux 2.6 Guide’ for more detail
a.Uploading ‘u-boot.bin’ using USB 2.0 Cable on WindowXP environment
Please copy 2 file: u-boot.bin, tftpserver-setup and DNW folder to Windowxp environment.
Step 1: Installing  tftpserver



Step 2: Copy file u-boot.bin into tftp root folder.



Step 3: Change NOR Flash Boot Mode:



Step 4: Run dnw.exe in DNW folder.
On the Configuration menu, click Options to set the UART/USB options. The following
window appears on your screen. Select Baud Rate and COM Port as shown in figure
“UART/USB options”, enter the download address as 0x57e00000 and then click OK
button.





On the Serial Port menu, click Connect. Switch ON the reference board and then press
any key and then install the USB driver in DNW driver directory



Enter “0”, On the USB Port menu, click Transmit and the following window appears on
your screen. Select u-boot.bin file and then
click Open button.




As soon as u-boot.bin download is over, the following messages appear in the DNW
window. Please hit the SPACE BAR key to view the current Ethernet Boot Loader
Configuration. Configure the Ethernet Boot loader as follows by entering the respective
options.



Setting IP address: set your ip address as serverip and a ramdom ip for the board
TFTP Server IP : setenv serverip 192.168.0.232
Device PC IP : setenv ipaddr 192.168.0.236
For erasing Bad blocks in NAND : nand scrub




Input ‘Y’ directly hit ‘Enter’



tftp c0000000 u-boot.bin
nand erase 0 40000



nand write c0000000 0 40000



Please reboot After Setting NAND of Boot Mode



Now, u-boot.bin is uploaded on the board. You don’t need perform this step more. Restart PC and come back liux environment. Now, our working environment is only Linux.
b.Uploading kernel image using Minicom on Linux
If your system has not minicom , please install Mincom using apt-get.
tommy@tommy-desktop:~$ minicom -s : Execute minicom on setting mode


Please select ‘Serial port setup’ and set configuration as below:

Restart minicom, then restart the board and hit SPACE BAR immediately. On Mincom screen:

U-Boot 1.1.6 (Dec 16 2008 - 19:08:22) for XX6410                                                                                
                                                                                                                                
                                                                                                                                
CPU:     S3C6410@666MHz                                                                                                         
         Fclk = 666MHz, Hclk = 133MHz, Pclk = 66MHz, Serial = CLKUART (ASYNC Mode)                                              
Board:   SMDK6410                                                                                                               
DRAM:    128 MB                                                                                                                 
Flash:   0 kB                                                                                                                   
NAND:    128 MB                                                                                                                 
In:      serial                                                                                                                 
Out:     serial                                                                                                                 
Err:     serial                                                                                                                 
Net:     Found CS8900@0x18800300                                                                                                
Hit any key to stop autoboot:  0                                                                                                
MV6410 #

Set environment variables for the board

XX6410 # setenv serverip 192.168.11.2
XX6410 # setenv ipaddr 192.168.11.3
XX6410 # setenv bootargs root=/dev/nfs rw nfsroot=192.168.11.2: /nfsroot/090227-Android-cupcake-rootfs,rsize=1024,wsize=1024 ip=192.168.11.3:192.168.11.2:192.168.11.2:255.255.255.0::eth0:off init=/init console=ttySAC0,115200N81

XX6410 # saveenv 
Saving Environment to NAND...                                                                                                   
Erasing Nand...Writing to Nand... done  

Download image kernel from tftp server into DRAM
                                                                                       

XX6410 # tftp c0008000 zImage                                                                                                   
XX6410 # tftp c0008000 zImage                                                                                                   
TFTP from server 192.168.11.2; our IP address is 192.168.11.3                                                                   
Filename 'zImage'.                                                                                                              
Load address: 0xc0008000                                                                                                        
Loading: #################################################################                                                      
         #################################################################                                                      
         #################################################################                                                      
         #################################################################                                                      
         #################################################################                                                      
         #################################################################                                                      
         ######                                                                                                                 
done                                                                                                                            
Bytes transferred = 2027440 (1eefb0 hex)  
      
Boot from DRAM(only for testing)


MV6410 # bootm                                                                                                                  
 Boot with zImage                                                               
                                                                               
Starting kernel ...                                                            
                                                                               
Uncompressing Linux.............................................................
Linux version 2.6.24.back-21-26-lgs-android-g10351122-dirty (tommy@tommy-de9
CPU: ARMv6-compatible processor [410fb766] revision 6 (ARMv7), cr=00c5387f     
Machine: SMDK6410                                                              
Ignoring unrecognised tag 0x00000000                                           
Memory policy: ECC disabled, Data cache writeback                              
CPU S3C6410 (id 0x36410101)                                                    
S3C6410: core 666.000 MHz, memory 133.000 MHz, peripheral 66.500 MHz           
S3C6410: EPLL 192.000 MHz                                                      
S3C64XX Clocks, (c) 2007 Samssung Electronics                                  
CPU0: D VIPT write-back cache                                                  
CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets           
CPU0: D cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets           
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512     
Kernel command line: root=/dev/nfs rw nfsroot=192.168.11.2:/nfsroot/090227-Andr1
Trying to install chained interrupt handler for IRQ0                           
Trying to install chained interrupt handler for IRQ1                           
Trying to install chained interrupt handler for IRQ32                          
Trying to install chained interrupt handler for IRQ33                          
PID hash table entries: 512 (order: 9, 2048 bytes)                             
timer tcon=00600000, tcnt 103c3, tcfg 00000400,00000000, usec 00001340         
Console: colour dummy device 80x30                                             
console [ttySAC0] enabled                                                      
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)                 
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)                   
Memory: 128MB = 128MB total                                                    
Memory: 125312KB available (3412K code, 530K data, 508K init)                  
Mount-cache hash table entries: 512                                            
CPU: Testing write buffer coherency: ok                                        
net_namespace: 64 bytes                                                        
android_power_init                                                             
android_power_init done                                                        
NET: Registered protocol family 16                                             
S3C6410 Power Management, (c) 2008 Samsung Electronics                         
s3c6410: Initialising architecture                                             
S3C DMA-pl080 Controller Driver, (c) 2006-2007 Samsung Electronics             
Total 32 DMA channels will be initialized.                                     
SCSI subsystem initialized                                                     
usbcore: registered new interface driver usbfs                                 
usbcore: registered new interface driver hub                                   
usbcore: registered new device driver usb                                      
NET: Registered protocol family 2                                              
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)                 
TCP established hash table entries: 4096 (order: 3, 32768 bytes)               
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)                      
TCP: Hash tables configured (established 4096 bind 4096)                       
TCP reno registered                                                            
NetWinder Floating Point Emulator V0.97 (double precision)                     
ashmem: initialized                                                            
JFFS2 version 2.2. (NAND) �© 2001-2006 Red Hat, Inc.                           
yaffs May  4 2009 21:03:15 Installing.                                         
io scheduler noop registered                                                   
io scheduler anticipatory registered (default)                                 
io scheduler deadline registered                                               
io scheduler cfq registered                                                    
S3C_LCD clock got enabled :: 133.000 Mhz                                       
LCD TYPE :: LTE480WV will be initialized                                       
Window[0] - FB1: map_video_memory: clear ff200000:00177000                     
            FB1: map_video_memory: dma=57a00000 cpu=ff200000 size=00177000     
Window[0] - FB2: map_video_memory: clear ff2bb800:000bb800                     
            FB2: map_video_memory: dma=57abb800 cpu=ff2bb800 size=000bb800     
Console: switching to colour frame buffer device 100x30                        
fb0: s3cfb frame buffer device                                                 
Window[1] - FB1: map_video_memory: clear ff377000:00177000                     
            FB1: map_video_memory: dma=57c00000 cpu=ff377000 size=00177000     
Window[1] - FB2: map_video_memory: clear ff432800:000bb800                     
            FB2: map_video_memory: dma=57cbb800 cpu=ff432800 size=000bb800     
fb1: s3cfb frame buffer device                                                 
lp: driver loaded but no devices found                                         
ppdev: user-space parallel port driver                                         
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled       
s3c-uart.0: s3c_serial0 at MMIO 0x7f005000 (irq = 37) is a S3C                 
s3c-uart.1: s3c_serial1 at MMIO 0x7f005400 (irq = 38) is a S3C                 
s3c-uart.2: s3c_serial2 at MMIO 0x7f005800 (irq = 39) is a S3C                 
s3c-uart.3: s3c_serial3 at MMIO 0x7f005c00 (irq = 40) is a S3C                 
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize          
loop: module loaded                                                            
cs89x0:cs89x0_probe(0x0)                                                       
cs89x0.c: v2.4.3-pre1 Russell Nelson <nelson@crynwr.com>, Andrew Morton <andrew>
eth0: cs8900 rev J found at 0xf7600300                                         
cs89x0: Extended EEPROM checksum bad and no Cirrus EEPROM, relying on command le
cs89x0 media RJ-45, IRQ 74, programmed I/O, MAC 00:09:c0:ff:ec:48              
cs89x0_probe1() successful                                                     
Invalid chip endian 0x080                                                      
smc911x: not found (-19).                                                      
Driver 'sd' needs updating - please use bus_type methods                       
S3C NAND Driver, (c) 2007 Samsung Electronics                                  
S3C NAND Driver is using hardware ECC.                                         
NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-b)
Creating 4 MTD partitions on "NAND 128MiB 3,3V 8-bit":                         
0x00000000-0x00040000 : "Bootloader"                                           
0x00040000-0x00400000 : "Kernel"                                               
0x00400000-0x03400000 : "Root - Cramfs"                                        
0x03400000-0x08000000 : "File System"                                          
usbmon: debugfs is not available                                               
s3c2410-ohci s3c2410-ohci: S3C OHCI                                            
s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1       
s3c2410-ohci s3c2410-ohci: irq 47, io mem 0x74300000                           
usb usb1: configuration #1 chosen from 1 choice                                
hub 1-0:1.0: USB hub found                                                     
hub 1-0:1.0: 2 ports detected                                                  
Initializing USB Mass Storage driver...                                        
usbcore: registered new interface driver usb-storage                           
USB Mass Storage support registered.                                           
mice: PS/2 mouse device common for all mice                                    
S3C Touchscreen driver, (c) 2008 Samsung Electronics                           
S3C TouchScreen got loaded successfully : 12 bits                              
input: S3C TouchScreen as /class/input/input0                                  
S3C24XX RTC, (c) 2004,2006 Simtec Electronics                                  
s3c2410-rtc s3c2410-rtc: rtc disabled, re-enabling                             
s3c2410-rtc s3c2410-rtc: rtc core: registered s3c as rtc0                      
i2c /dev entries driver                                                        
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics                            
s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled        
[s3c_hsmmc_probe]: s3c-hsmmc.0: at 0xc9000000 with irq 56. clk src: sclk_DOUTmp0
[s3c_hsmmc_probe]: s3c-hsmmc.1: at 0xc9200000 with irq 57. clk src: sclk_DOUTmp1
[s3c_hsmmc_probe]: s3c-hsmmc.2: at 0xc9400000 with irq 49. clk src: sclk_DOUTmp2
usbcore: registered new interface driver usbhid                                
drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver                        
logger: created 64K log 'log_main'                                             
logger: created 64K log 'log_events'                                           
logger: created 64K log 'log_radio'                                            
Advanced Linux Sound Architecture Driver Version 1.0.15 (Tue Nov 20 19:16:42 20.
ASoC version 0.13.1                                                            
WM9713/WM9714 SoC Audio Codec 0.12                                             
asoc: AC97 HiFi <-> s3c64xx-ac97 mapping ok                                    
ALSA device list:                                                              
  #0: SMDK6400 (WM9713)                                                        
TCP cubic registered                                                           
NET: Registered protocol family 1                                              
RPC: Registered udp transport module.                                          
RPC: Registered tcp transport module.                                          
s3c2410-rtc s3c2410-rtc: setting system clock to 2000-01-04 23:42:11 UTC (94702)
eth0: using half-duplex 10Base-T (RJ-45)                                       
IP-Config: Complete:                                                           
      device=eth0, addr=192.168.11.3, mask=255.255.255.0, gw=192.168.11.2,     
     host=192.168.11.3, domain=, nis-domain=(none),                            
     bootserver=192.168.11.2, rootserver=192.168.11.2, rootpath=               
Looking up port of RPC 100003/2 on 192.168.11.2                                
Looking up port of RPC 100005/1 on 192.168.11.2                                
VFS: Mounted root (nfs filesystem).                                            
Freeing init memory: 508K                                                      
Warning: unable to open an initial console.                                    

init: cannot open '/initlogo.rle'                                              

init: cannot find '/system/bin/playmp3', disabling 'bootsound'                 

sh: can't access tty; job control turned off                                   

# tsdev (compaq touchscreen emulation) is scheduled for removal.               

See Documentation/feature-removal-schedule.txt for details.                    

android_power_suspend: 117110645000                                            

android sleep state 0->2 at 117110645000                                       

active wake lock

PowerManagerService                                           

android_power_suspend: enter suspend                                           

Syncing filesystems ... done.                                                  

Freezing user space processes ... (elapsed 0.00 seconds) done.                 

Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.            

Suspending console(s)  

The system hangs at here

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

s3c6410 android 移植Step by step 的相关文章

  • 如何在列表视图中选择时启用视频序列自动播放?

    大家好 有人可以与我分享一下我如何编写我的 viewvideo java 类 以便它允许自动播放视频功能 自动排序在列表视图中播放所选视频的任务 从当前位置到最新录制的视频 按顺序直到最新的视频播放完毕 这类似于 YouTube 自动播放功
  • string.empty 和 string[0] == '\0' 之间的区别

    假设我们有一个字符串 std string str some value is assigned 有什么区别str empty and str 0 0 C 11 及更高版本 string variable 0 如果字符串为空 则需要返回空字
  • 混合 VS2012 平台工具集

    我们正在从 VS2005 切换到 VS2012 update 2 我们正在构建大量 主要是控制台 本机 C 无 MFC ATL 可执行文件 它们使用几个常见的静态链接库 这些可执行文件主要在 Win7 计算机上运行 但有些也部署在较旧的 X
  • 使用 Google 语音服务查询支持的语言不适用于 Android 13

    我使用以下命令查询语音服务支持的语言RecognizerIntent ACTION GET LANGUAGE DETAILS action val intent Intent RecognizerIntent ACTION GET LANG
  • C# 列表框 ObservableCollection

    我正在尝试使用 ListBox DataSource ObservableCollection 但是我不知道如何在 OC 更新时让列表框自动更新 我可以在 OC 上挂接 CollectionChanged 事件 但是我需要对列表框执行什么操
  • 从另一个活动返回时 Android ListView 项目没有响应?

    我从 ArrayAdapter 创建一个 ListView ListView的每一行都有一个ImageView和一个TextView 现在我使用 setOnItemClickListener 处理单击事件 lv getListView lv
  • 如何在flutter app android中添加Startapp广告?

    我想用其他广告更改 AdMob 广告 一些个人问题 如何在flutter app android中添加Startapp广告 有什么方法可以将启动广告添加到我的 flutter 应用程序 android 中 StartApp 现已更名为 St
  • 如何在单独的类库中管理客户端上下文对象?

    我正在尝试创建一个库 类库 对于共享点 它将拥有所有共享点 dll 来与共享点服务器交互上传文件 文档并创建文档库和文档集 现在这个库可以被使用客户端 例如 Web 应用程序 asp net webform 或 mvc 或控制台应用程序或
  • MSBuild 将动态生成的文件复制为项目依赖项的一部分

    我有一个自定义 msbuild 任务 它正在生成一些输出文件到 ProjectA 的输出目录 TargetDir 当前的代码是这样的
  • 如何检查是否发生溢出? [复制]

    这个问题在这里已经有答案了 可能的重复 检测 C C 中整数溢出的最佳方法 https stackoverflow com questions 199333 best way to detect integer overflow in c
  • C#中如何将委托转换为对象?

    我正在使用反射类来调用其他 dll 上的一些方法 方法的参数之一是委托类型 我想通过使用反射来调用这个方法 所以我需要将函数参数作为对象数组传递 但我找不到任何关于 如何将委托转换为对象 提前致谢 委托是一个对象 只需像平常一样创建预期的委
  • 我可以像 justify 这样设置 Textview 的属性吗? [关闭]

    Closed 这个问题不符合堆栈溢出指南 help closed questions 目前不接受答案 我想设置 TextView 属性 如右对齐 左对齐 对齐 不 你不能设置像重力这样的属性 但您仍然可以通过采用 web 视图而不是文本视图
  • 将 libpng 链接到 android 原生项目

    我在尝试在本机 Android 项目中加载 libpng 时遇到问题 编译器似乎无法识别 libpng 函数 但可以识别类型 如 png byte 它可以正常编译类型 但如果我添加函数 则会抛出错误 这是编译输出 Windows 7 cmd
  • 如何在Android手机上而不是模拟器上运行或调试?

    Android 模拟器速度太慢 无法测试运行的应用程序 有没有办法使用 IDE 而不是模拟器在真实手机上调试 运行应用程序 通常 您可以在手机上打开 USB 调试 然后通过 USB 将其连接到 PC 然后 手机将以与模拟器相同的方式出现在
  • Cuda:最小二乘求解,速度较差

    最近 我使用Cuda编写了一个名为 正交匹配追踪 的算法 在我丑陋的 Cuda 代码中 整个迭代需要 60 秒 而 Eigen lib 只需 3 秒 在我的代码中 矩阵 A 是 640 1024 y 是 640 1 在每一步中 我从 A 中
  • 在 Chrome 中使用 animate.css 时出现全屏视频问题

    我有一个页面 其中包含使用视频标签的视频 另外 我的页面使用 animate css 向我的元素添加一些动画 问题是 当我在 animate css 中使用样式时 我的视频无法正确全屏显示 这是我的页面的示例 div div class g
  • STL 向量、迭代器和插入 (C++)

    我有一个将向量的迭代器传递到的方法 在这个方法中 我想向向量中添加一些元素 但我不确定当只有迭代器时这是否可行 void GUIComponentText AddAttributes vector
  • 更改 ActionMode 溢出图标

    有没有办法更改 ActionMode Overflow 图标而不更改 正常 ActionBar 的图标 我仍然需要弄清楚如何仅更改 ActionMode Actionbar 内部的溢出图标 因为我更改了默认操作栏中的溢出图标 该图标在 Ac
  • MsBuild 在 Visual Studio Online 上找不到恢复的 NuGet 包

    我尝试构建一个存储在 Visual Studio Online 上的外部 GIT 存储库中的解决方案 它有以下步骤 1 Git 恢复 有效 2 NuGet 恢复 有效 3 构建 不起作用 查看日志时我的第一个猜测是 MsBuild 没有查找
  • GetActiveObject() 与 GetObject() -- MK_E_UNAVAILABLE 错误

    All 我在将一些 VBA 代码转换为 C 时遇到一些问题 我们有一个充当本地 COM 服务器的第 3 方应用程序 在我们使用的VBA代码中获取对象 获取对现有对象的引用 e g Set appHandle GetObject ProgId

随机推荐

  • 尝试将RxJava和Retrofit

    http www jianshu com p 2b0aeb6b6b61 安卓学习 记住3点 现在安卓发展的足够成熟 遇到的需求 别人也遇到了 遇到的bug别人遇见过了 不要想着走捷径 这些留下的人 不一定靠技术 也许靠脸皮 所以只管学习 快
  • [洛谷 P3376] 网络最大流

    题目链接 题目描述 如题 给出一个网络图 以及其源点和汇点 求出其网络最大流 输入格式 第一行包含四个正整数 n n n m m m s
  • Redis——zset类型详解

    概要 zset是有序集合 将zset中的members引入一个属性score 根据这个属性值来进行排序 其中members不可以重复 score可以重复 按照字典序排序 默认按照升序排序 有序集合中提供指定分数和元素范围查找 计算成员排名功
  • grep中加单引号与不加引号的区别

    今天写命令时本想查找最后带标点的句子 结果发现不带引号时无法识别 grep n exp grep n exp 貌似不加单引号无法达到我们想要的效果 上网搜了一下 有人说是因为引号的作用 其实这在shell变量中就有介绍 明显的是 这里单引号
  • 借力计算机视觉及深度学习,纽卡斯尔大学开发实时、自动化奶牛跛行检测系统

    本文首发自 HyperAI超神经微信公众号 内容一览 近期 纽卡斯尔大学联合费拉科学有限公司联合开发了一个针对多头奶牛的自动化 实时跛行检测系统 该系统能够按照跛行评分系统将奶牛进行分类 并且准确度高达 94 100 目前 该研究成果已发表
  • Spring Boot系列 - 3. SpringBoot项目学习汇总

    原文地址 https blog csdn net hemin1003 article details 53217489 网络上很多关于SpringBoot的资料和代码 但有一些根本运行不了 有些博主的代码还故意藏着掖着 一定要加他的微信才能
  • php 文件上传抓包,详解文件上传漏洞

    介绍 在现代互联网网站中 上传文件基本上是一种常见的功能 允许用户上传一些图片 视频以及其他类型的文件 如果网站出现文件上传漏洞 那么恶意用户就可以将可执行脚本程序上传到web服务器中 获得网站权限 进一步 gongji web服务器 当上
  • skywalking agent监控java服务

    一 前言 skywalking agent可以监控的服务类型有多种 python go java nodejs服务等都可以监控 现在通过java服务来演示skywalking agent的使用 并且是使用容器的方式实现 二 部署skywal
  • 拓闻

    大数据时代的来临为众多企业带来了更多的全新的发展机遇 而搜索引擎已经成为大数据领域的一个核心应用 其重要性不言而喻 很多公司在大数据离线统计分析方面已经具备了一定的能力 但是 很多应用场景往往要求在数秒内完成对几亿 几十亿甚至几百上千亿的数
  • 史上最全 Appium 自动化测试从基础到框架实战精华学习笔记(一)

    1080 402 31 8 KB 对测试人来说 Appium 是非常重要的一个开源跨平台自动化测试工具 它允许测试人员在不同的平台 iOS Android 等 使用同一套 API 来写自动化测试脚本 这样可大幅提升代码复用率和工作效率 本文
  • UI自动化之python+pytest+allure+selenium

    一 基础搭建 1 下载pycharm 配置环境变量 2 安装对应版本的webdriver 将webdriver放在项目根目录 3 pip install pytest 4 pip install allure 二 框架设计 三 目录详解 1
  • docker安装redis教程

    通过Docker方式安装redis教程 1 拉取镜像 方式一 指定版本 拉取redis6 2 5版本 docker pull redis 6 2 5 方式二 拉取redis最新的版本 docker pull redis 查看docker的镜
  • Reactor和Proactor的区别

    一 实现方式 Reactor 采用同步IO 用户层执行IO操作时 处于挂起状态 等待内核层完成 图示如下 Proactor 采用异步IO 用户层执行IO操作时 可以一边等待内核操作IO 一边自己去处理其他事情 等内核操作IO结束后 用户层被
  • MySQL中的BLOB类型

    一 概念 BLOB binary large object 二进制大对象 是一个可以存储二进制文件的容器 在计算机中 BLOB常常是数据库中用来存储二进制文件的字段类型 BLOB是一个大文件 典型的BLOB是一张图片或一个声音文件 由于它们
  • 传递点的大小

    仍然用attribute 因为是顶点着色器 11
  • 博客要写得好,Emoji要用对!

    EMOJI 01 表情与心情 02 动作与身份 03 动物与植物 04 食品与饮料 05 旅行和地点 06 娱乐与活动 07 物品与工具 08 符号与标识 01 表情与心情 02 动作与身份
  • 华为OD机试 - 最差产品奖( Python)

    题目描述 A公司准备对他下面的N个产品评选最差奖 评选的方式是首先对每个产品进行评分 然后根据评分区间计算相邻几个产品中最差的产品 评选的标准是依次找到从当前产品开始前M个产品中最差的产品 请给出最差产品的评分序列 输入描述 第一行 数字M
  • 手把手教你,把3D模型从stl格式导出iges格式的方法

    工具 Hypermesh 注意 下载和安装视频在我的上传资源里面 记得安装路径不能有中文 自己的操作账户名也不能是中文的 方法 第一 按照如下步骤 导入stl模型 第二步 点击Shaded 按钮 显示实体网格 第三步 点击Geom下的sur
  • 自己搭的12V 电机驱动电路设计

    1 单MOS管驱动电路 采用P75NF75为主角构成 2 双MOS管电机驱动电路设计 采用D4184管组合 3 半桥驱动电路设计 采用BTS7960芯片 两路半桥构成全桥驱动电路
  • s3c6410 android 移植Step by step

    Report 2009 03 05 转载请说明出处 不得用于商业用途 Linux forum id hongjiujing Porting android on s3c6410 Environment ubuntu 8 10 Board X