(Update) After the Raspbian being updated, the way setting Wi-Fi AP is changed a bit.
1. Installing Raspbian (It’s explained how it can be done with Mac OS X; however it doesn’t differ much for Windows or Linux too)
(Skip to step 2 if your Raspberry Pi already works with Raspbian.)
(You also can use image without noobs, but it might be complex)
1-1. Download NOOBS
(NOOBS is an easy operating system installer which contains Raspbian. It also provides a selection of alternative operating systems which are then downloaded from the internet and installed.)
Download NOOBS from http://downloads.raspberrypi.org/NOOBS_latest.
(If above link doesn’t work well, then download NOOBS from https://www.raspberrypi.org/downloads)
1-2. Format the MicroSD card with FAT32 partition.
(In my case, using SD Association’s SD formatter with 64 GB memory formatted the card as exFAT. However, the Raspberry Pi only detected FAT32-formatted memory, so use other tools for formatting; like Disk Utility in Mac with specifying partition type as FAT32 (FAT in DIsk Utility))
(old) 1-2. Download SD Association’s SD formatter.
Download the formatter from https://www.sdcard.org/downloads/formatter_4/eula_mac.
After download, install by executing pkg file.
(old) 1-3. Execute SD Association’s SD formatter.
Insert SD card you want to use on Mac, execute SD Association’s SD formatter, then format the card with selecting “overwrite format”
1-3. Copy NOOBS files to the SD CARD
Uncompress the downloaded NOOBS archive file (e.g. NOOBS_v1_4_1.zip)
After then, copy all files to the root of the SD card.
(Files including bootcode.bin, BUILD-DATA, …. should come to the root directory like below.)
1-4. Turn on raspberry pi
Detach the sd card from Mac, then insert it to raspberry pi.
Boot raspberry pi. When NOOBS run, select Raspbian as operating system to install.
(Optional: set language as English (US))
2. Setting IP of Ethernet Interface (in case of static IP)
Refer to https://www.modmypi.com/blog/how-to-give-your-raspberry-pi-a-static-ip-address-update. However, you should’t assign your wireless LAN IP address (wlan0 interface in the example) to /etc/dhcpcd.conf.
3. Setting IP of Wireless LAN interface, AP configuration
Refer to https://frillip.com/using-your-raspberry-pi-3-as-a-wifi-access-point-with-hostapd.
However, I needed to exclude ieee80211n=1 in /etc/hostapd/hostapd.conf (after channel setting) to get worked. (802.11n mode is enabled even without the settings)
After setting things according to the link, you can see the AP.
You can also make AP created automatically on each boot by below commands (one-time):
sudo update-rc.d hostapd enable
sudo update-rc.d dnsmasq enable
(Deprecated) good reference from my lab mate’s blog http://blog.naver.com/solar0ryu/220391354960