Hi All,
My setup :
Distributor ID: Ubuntu
Description: Ubuntu 17.10
Release: 17.10
Codename: artful
My setup -
Laptop : Full specification https://support.hp.com/za-en/document/c05562632
Board : Respbarry Pi 2 Model B1.1with VNC Client, Putty installed.
OS On laptop : Ubuntu 17.10
Kernel : 4.13.0-38-generic
Samsung Galaxy OnPro5 Android Mobile Charger, USB Keyboard, Mouse
TTL Cable: https://www.thingbits.net/products/usb- ... fVEALw_wcB
I have created the u-boot and kernel image with below provided commands and https://elinux.org/RPi_U-Boot -
uboot image creation for rpi2
cd ../swu-boot/
106 make rpi_2_defconfig
107 export CROSS_COMPILE=$HOME/rpi-tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/arm-linux-gnueabihf/bin/
108 loacte arm-linux-gnueabihf
109 locate arm-linux-gnueabihf
110 locate arm-linux-gnueabihf-gcc
111 /home/iot/Desktop/rpi-tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-gcc
112 export CROSS_COMPILE=/home/iot/Desktop/rpi-tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-
113 make ARCH=arm CROSS_COMPILE=/home/iot/Desktop/rpi-tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf- j4 -s
114 make ARCH=arm CROSS_COMPILE=/home/iot/Desktop/rpi-tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc j4 -s
115 make ARCH=arm CROSS_COMPILE=/home/iot/Desktop/rpi-tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/bin/arm-linux-gnueabihf- j4 -s
116 make ARCH=arm CROSS_COMPILE=/home/iot/Desktop/rpi-tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/bin/arm-linux-gnueabihf-
117 locate arm-linux-gnueabihf-gcc
118 export USE_PRIVATE_LIBGCC=yes
119 make ARCH=arm CROSS_COMPILE=/home/iot/Desktop/rpi-tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/bin/arm-linux-gnueabihf-
120 apt-get install gcc-arm-linux-gnueabihf
121 sudo apt-get install gcc-arm-linux-gnueabihf
122 locate arm-linux-gnueabihf-gcc
123 locate gcc-7-arm-linux-gnueabihf
124 ls
125 export CROSS_COMPILE=arm-linux-gnueabihf-
126 make -j4 -s
127 make
128 make -j4 -s
Kernel image creation for rpi2
155 cd linux/
156 KERNEL=kernel7
157 make bcm2709_defconfig
158 ls
159 cd arch/arm64/configs/
160 ls
161 cd ../../arm/
162 cd ../../arm
163 ls
164 cd mach-bcm/
165 ls
166 cd ..
167 ls
168 cd ..
169 make bcm2709_defconfig
170 export ARCH=arm
171 make bcm2709_defconfig
172 make
173 KERNEL=kernel7
174 make bcm2709_defconfig
175 cd ..
176 git clone https://github.com/raspberrypi/tools ~/tools
177 ls
178 echo PATH=\$PATH:~/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin
179 echo PATH=\$PATH:~/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin >> ~/.bashrc
180 source ~/.bashrc
181 cd linux/
182 make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- bcm2709_defconfig
183 make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage modules dtbs
184 locate arm-linux-gnueabihf-gcc
185 make ARCH=arm CROSS_COMPILE=/home/iot/Desktop/rpi-tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/bin/arm-linux-gnueabihf- zImage modules dtbs
Now I do have the u-boot.bin and kernel zimage and other files with below provided entries -
bootp compressed dts Image install.sh Makefile zImage
Objective : I want rs232/uart console with booting sequence with timestamp on my laptop. To move with kernel development -
I am using https://blog.christophersmart.com/2016/ ... rm-boards/
Can anybody help me the further setting of minicom with card preparation , although I am following, as per https://blog.christophersmart.com/2016/ ... rm-boards/ i prepared card but, fat32 and ext4 partitions. After it I do have following doubts -
1. Kernel.img is suggested , but i think kernel7 must be copied, which file need to copy, can anybody suggest ?
2. What would be minicom setting ?
3. Where the u-boot.bin file will be copied ?
4. How primary bootloader of rpi2 board will be configured ?
5.What would be of rootfs ? where from where to copy ?
I want to see the prompt at laptop with rs232/uart connection with timestamp to work with fast boot. Kindly help me to move further, if will be a great help if someone can provide me the links , documentation , exact steps and setting with details.
-Thanks to all for helping me till yet..
Regards.
Ankur