This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static ssize_t virtKeyboard_write(struct file *file, const char __user *buf, size_t len, loff_t *ppos){ | |
u32 keycode = 0u; | |
u8 *kernel_buf = (u8*)kzalloc(len,GFP_KERNEL); | |
int ret = 0; | |
pr_info(LOG("Length : %d"),len); | |
if(kernel_buf == NULL){ | |
pr_err(LOG("Not enough memory")); | |
return -ENOMEM; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setenv bootargs 'console=tty0 console=ttyO0,115200n8 root=/dev/nfs rootfstype=nfs rw nfsroot=172.30.1.33:/home/hcyang/bbb/rootfs ip=dhcp rootwait' | |
setenv ipaddr 172.30.1.50 | |
setenv serverip 172.30.1.33 | |
tftpboot 0x80200000 vmlinuz-4.9.119-bone11 | |
tftpboot 0x815f0000 dtbs/am335x-boneblack.dtb | |
bootz 0x80200000 - 0x815f0000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo cp -v ./uEnv.txt rootfs/ | |
sudo tar xfvp ./*-*-*-armhf-*/armhf-rootfs-*.tar -C rootfs/ | |
sudo sync | |
sudo sudo chown root:root rootfs/ | |
sudo sudo chmod 755 rootfs/ | |
sudo sync | |
sudo cp -v ./bb-kernel/deploy/${kernel_version}.zImage rootfs/boot/vmlinuz-${kernel_version} | |
sudo mkdir -p rootfs/boot/dtbs/${kernel_version}/ | |
sudo tar xfv ./bb-kernel/deploy/${kernel_version}-dtbs.tar.gz -C rootfs/boot/dtbs/${kernel_version}/ | |
sudo tar xfv ./bb-kernel/deploy/${kernel_version}-modules.tar.gz -C rootfs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Device Tree */ | |
&dcan1{ | |
#address-cells = <1>; | |
#size-cells = <0>; | |
status = "okay"; | |
pinctrl-names = "default"; | |
pinctrl-0 = <&dcan1_pins_s0>; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo tar xfvp ./*-*-*-armhf-*/armhf-rootfs-*.tar -C /home/hcyang/work/boot/rootfs/ | |
sync | |
sudo chown root:root /home/hcyang/work/boot/rootfs/ | |
sudo chmod 755 /home/hcyang/work/boot/rootfs/ | |
sync | |
sudo mkdir -p /home/hcyang/work/boot/rootfs/boot/ | |
sudo mkdir -p /home/hcyang/work/boot/rootfs/boot/dtbs/${kernel_version}/ | |
sudo mkdir -p rootfs/boot/dtbs/${kernel_version}/ | |
sudo sh -c "echo 'uname_r=${kernel_version}' >> /home/hcyang/work/boot/rootfs/boot/uEnv.txt" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/ | |
* | |
* This program is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License version 2 as | |
* published by the Free Software Foundation. | |
*/ | |
/dts-v1/; | |
#include "am33xx.dtsi" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@startuml | |
participant "head.S" | |
participant "init/main.c" | |
participant "init/main.c (New kernel thread)" | |
head.S -> "init/main.c": start_kernel() | |
activate "init/main.c" | |
"init/main.c" -> "init/main.c": arch_call_rest_init() | |
activate "init/main.c" | |
"init/main.c" -> "init/main.c": rest_init(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CPU { | |
public: | |
void Work(); | |
private: | |
}; | |
class Intel : public CPU{ | |
public : |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CPU { | |
public: | |
void Work(); | |
private: | |
}; | |
class Intel : public CPU{ | |
public : |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn main() { | |
println!("Hello, world!"); | |
} |
OlderNewer